From: <D.D...@ak...> - 2011-04-13 09:50:27
|
<font face="Sans Serif predefinito,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi all,<br><br>I think I spotted a little bug you might be interested in. In my project, I send SOAP requests to a server that I compose in a stringbuffer, like the following<br><br>query.append("<TripInformationRequest xmlns=\<a class="moz-txt-link-rfc2396E" href="http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest%5C">"http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest\"</a>><recordLocator>");<br><br>When sending the request however, I was receiving a Routing Error from the server that I couldn't understand.<br>After some packet sniffing I found out that, in the Objectve-C version of the project, the line was translated as<br><br> _r3.o = @"<TripInformationRequest xmlns=\\042http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest\\042><recordLocator>";<br><br>The \" pattern in the string was converted to \\042 which caused the problem.<br>I solved the problem by modifying the xslt sheet as follows (at line 2944)<br><br><xsl:value-of select="replace(replace(replace(replace(replace(replace(replace(replace(@value,'\\','\\\\'),<br> '\\\\011','\\t'),'\\\\012','\\n'),'\\\\015','\\r'),'\\\\014','\\f'),'\\\\010','\\b'),<br> '&quot;','\\&quot;'), '\\\\042','\\&quot;')"/><br><br>Practically I just added a new replace pattern at the end of all the others. Do you think it might be a good solution?<br><br>Thanks,<br><br>Domenico<br></div></font> |
From: Paul P. <bay...@gm...> - 2011-04-13 14:42:35
|
Hi Domenico, It appears you have an outdated version. Please update to head & this should be resolved. Thanks, Paul On Wed, Apr 13, 2011 at 4:50 AM, <D.D...@ak...> wrote: > Hi all, > > I think I spotted a little bug you might be interested in. In my project, I > send SOAP requests to a server that I compose in a stringbuffer, like the > following > > query.append("<TripInformationRequest xmlns=\ > "http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest\"<http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest%5C> > ><recordLocator>"); > > When sending the request however, I was receiving a Routing Error from the > server that I couldn't understand. > After some packet sniffing I found out that, in the Objectve-C version of > the project, the line was translated as > > _r3.o = @"<TripInformationRequest xmlns=\\042 > http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest\\042 > ><recordLocator>"; > > The \" pattern in the string was converted to \\042 which caused the > problem. > I solved the problem by modifying the xslt sheet as follows (at line 2944) > > <xsl:value-of > select="replace(replace(replace(replace(replace(replace(replace(replace(@value,'\\','\\\\'), > > '\\\\011','\\t'),'\\\\012','\\n'),'\\\\015','\\r'),'\\\\014','\\f'),'\\\\010','\\b'), > '"','\\"'), '\\\\042','\\"')"/> > > Practically I just added a new replace pattern at the end of all the > others. Do you think it might be a good solution? > > Thanks, > > Domenico > > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > |
From: Panayotis K. <pan...@pa...> - 2011-04-13 17:13:17
|
On Apr 13, 2011, at 5:42 PM, Paul Poley wrote: > Hi Domenico, > > It appears you have an outdated version. Please update to head & this should be resolved. > > Thanks, > Paul In any case, I think there is still a bug in the procedure. I don't have any idea at all how this could be solved, but I believe we need to implement a method which is more unicode safe. |
From: Paul P. <bay...@gm...> - 2011-04-13 18:01:01
|
Arno submitted a fix in March that should address this issue. Namely see revisions 1534, 1535 & 1563. But if there are other unicode issues, yes, please bring them to light. I want to say unicode characters should escape properly, but I wouldn't make a huge wager on it. Thanks, Paul On Wed, Apr 13, 2011 at 12:13 PM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On Apr 13, 2011, at 5:42 PM, Paul Poley wrote: > > > Hi Domenico, > > > > It appears you have an outdated version. Please update to head & this > should be resolved. > > > > Thanks, > > Paul > > In any case, I think there is still a bug in the procedure. > I don't have any idea at all how this could be solved, but I believe we > need to implement a method which is more unicode safe. > > > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > |
From: Panayotis K. <pan...@pa...> - 2011-04-13 18:16:51
|
On Apr 13, 2011, at 9:00 PM, Paul Poley wrote: > Arno submitted a fix in March that should address this issue. Namely see revisions 1534, 1535 & 1563. > > But if there are other unicode issues, yes, please bring them to light. I want to say unicode characters should escape properly, but I wouldn't make a huge wager on it. Well, it *is* for me, since my native language is greek and unfortunately if I want to create an application, I have to do a custom i18n, so that I would be able to display anything in my own language. Let's take an example: public static void main(String[] args) { System.out.println("Γεια!"); UIApplication.main(args, null, Main.class); } and in ObjC + (void) main___java_lang_String_ARRAYTYPE :(XMLVMArray*)n1 { XMLVMElem _r0; XMLVMElem _r1; XMLVMElem _r2; _r2.o = n1; _r0.o = JAVA_NULL; _r1.o = JAVA_NULL; [_r2.o retain]; _r0.o = [java_lang_System _GET_out]; [_r0.o retain]; _r1.o = @"\1623\1665\1671\1661!"; [((java_io_PrintStream*) _r0.o) println___java_lang_String:_r1.o]; [_r0.o release]; _r0.o = JAVA_NULL; [_r1.o release]; _r1.o = [my_food_Main getClass__]; [org_xmlvm_iphone_UIApplication main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:_r2.o:_r0.o:_r1.o]; [_r0.o release]; [_r1.o release]; [_r2.o release]; return; } which prints r3v5w1v1! instead of something like Γεια! |
From: Paul P. <bay...@gm...> - 2011-04-13 18:41:34
|
Okay - gotcha. If that's still the case, you're right that unicode is not fully supported. I'm not sure I understand your first sentence though as I was not discounting it as an issue. I was only stating that Domenico's issue has been fixed recently. Paul On Wed, Apr 13, 2011 at 1:16 PM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On Apr 13, 2011, at 9:00 PM, Paul Poley wrote: > > Arno submitted a fix in March that should address this issue. Namely see > revisions 1534, 1535 & 1563. > > But if there are other unicode issues, yes, please bring them to light. I > want to say unicode characters should escape properly, but I wouldn't make a > huge wager on it. > > > Well, it *is* for me, since my native language is greek and unfortunately > if I want to create an application, I have to do a custom i18n, so that I > would be able to display anything in my own language. > > Let's take an example: > > public static void main(String[] args) { > System.out.println("Γεια!"); > UIApplication.main(args, null, Main.class); > } > > > and in ObjC > > + (void) main___java_lang_String_ARRAYTYPE :(XMLVMArray*)n1 > { > XMLVMElem _r0; > XMLVMElem _r1; > XMLVMElem _r2; > _r2.o = n1; > _r0.o = JAVA_NULL; > _r1.o = JAVA_NULL; > [_r2.o retain]; > _r0.o = [java_lang_System _GET_out]; > [_r0.o retain]; > _r1.o = @"\1623\1665\1671\1661!"; > [((java_io_PrintStream*) _r0.o) println___java_lang_String:_r1.o]; > [_r0.o release]; > _r0.o = JAVA_NULL; > [_r1.o release]; > _r1.o = [my_food_Main getClass__]; > [org_xmlvm_iphone_UIApplication > main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:_r2.o > :_r0.o:_r1.o]; > [_r0.o release]; > [_r1.o release]; > [_r2.o release]; > return; > } > > which prints > *r3v5w1v1!* > *instead of something like* > *Γεια!* > > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > |
From: Panayotis K. <pan...@pa...> - 2011-04-13 22:53:28
|
On Apr 14, 2011, at 12:38 AM, Sascha Haeberling wrote: > Don't you mean UTF-8? > > On Wed, Apr 13, 2011 at 10:00 PM, Arno Puder <ar...@pu...> wrote: > > UTF-16 is currently not supported (both in Objective-C and C backend). > I'll look into it. > > Arno > > I think it should be UTF-16. That's the native encoding of strings in java, and inside java classes |
From: <D.D...@ak...> - 2011-04-14 07:37:36
|
<font face="Sans Serif predefinito,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi,<br>I'm sorry to bother you with topics already solved. Until recently I didn't have the internet connection and it's been a pain to update xmlvm without losing the changes I made.<br>I'll try to start from a fresh version, manually apply my changes and submit a patch as soon as possible.<br>Anyway, everything seems to work with the strings now, at least for what I'm doing. I'l let you know if I find some other problem.<br><br>Thanks!<br><br>Domenico<br><br><br><br></div><font color="#990099">-----Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a> ha scritto: -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">Per: <a class="moz-txt-link-abbreviated" href="mailto:xml...@li...">xml...@li...</a><br>Da: Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a><br>Data: 14/04/2011 12.53AM<br>Oggetto: Re: [xmlvm-dev] Obj-C String conversion bug<br><br><br><div><div>On Apr 14, 2011, at 12:38 AM, Sascha Haeberling wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Don't you mean UTF-8?<div><br><div class="gmail_quote">On Wed, Apr 13, 2011 at 10:00 PM, Arno Puder <span dir="ltr"><<a href="mailto:ar...@pu...">ar...@pu...</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex; position: static; z-index: auto;"> <br> UTF-16 is currently not supported (both in Objective-C and C backend).<br> I'll look into it.<br><br> Arno<br> <div><div></div><div class="h5"><br><br></div></div></blockquote></div></div></blockquote></div><br><div>I think it should be UTF-16.</div><div>That's the native encoding of strings in java, and inside java classes </div><font face="Courier New,Courier,monospace" size="3">------------------------------------------------------------------------------<br>Benefiting from Server Virtualization: Beyond Initial Workload <br>Consolidation -- Increasing the use of server virtualization is a top<br>priority.Virtualization can reduce costs, simplify management, and improve <br>application availability and disaster protection. Learn more about boosting <br>the value of server virtualization. <a href="http://p.sf.net/sfu/vmware-sfdev2dev">http://p.sf.net/sfu/vmware-sfdev2dev</a></font><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>Xmlvm-developers mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Xml...@li...">Xml...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/xmlvm-developers">https://lists.sourceforge.net/lists/listinfo/xmlvm-developers</a><br></font> </blockquote><br></font> |
From: Arno P. <ar...@pu...> - 2011-04-13 21:00:24
|
UTF-16 is currently not supported (both in Objective-C and C backend). I'll look into it. Arno On 4/13/11 11:16 AM, Panayotis Katsaloulis wrote: > > On Apr 13, 2011, at 9:00 PM, Paul Poley wrote: > >> Arno submitted a fix in March that should address this issue. Namely >> see revisions 1534, 1535 & 1563. >> >> But if there are other unicode issues, yes, please bring them to >> light. I want to say unicode characters should escape properly, but I >> wouldn't make a huge wager on it. > > Well, it *is* for me, since my native language is greek and > unfortunately if I want to create an application, I have to do a custom > i18n, so that I would be able to display anything in my own language. > > Let's take an example: > > public static void main(String[] args) { > System.out.println("Γεια!"); > UIApplication.main(args, null, Main.class); > } > > > and in ObjC > > + (void) main___java_lang_String_ARRAYTYPE :(XMLVMArray*)n1 > { > XMLVMElem _r0; > XMLVMElem _r1; > XMLVMElem _r2; > _r2.o = n1; > _r0.o = JAVA_NULL; > _r1.o = JAVA_NULL; > [_r2.o retain]; > _r0.o= [java_lang_System_GET_out]; > [_r0.o retain]; > _r1.o= @"\1623\1665\1671\1661!"; > [((java_io_PrintStream*) _r0.o) println___java_lang_String:_r1.o]; > [_r0.o release]; > _r0.o = JAVA_NULL; > [_r1.o release]; > _r1.o = [my_food_Main getClass__]; > [org_xmlvm_iphone_UIApplicationmain___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:_r2.o:_r0.o:_r1.o]; > [_r0.o release]; > [_r1.o release]; > [_r2.o release]; > return; > } > > which prints > *r3v5w1v1!* > *instead of something like* > *Γεια!* > > > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > > > > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |
From: Sascha H. <sa...@gm...> - 2011-04-13 21:38:36
|
Don't you mean UTF-8? On Wed, Apr 13, 2011 at 10:00 PM, Arno Puder <ar...@pu...> wrote: > > UTF-16 is currently not supported (both in Objective-C and C backend). > I'll look into it. > > Arno > > > On 4/13/11 11:16 AM, Panayotis Katsaloulis wrote: > > > > On Apr 13, 2011, at 9:00 PM, Paul Poley wrote: > > > >> Arno submitted a fix in March that should address this issue. Namely > >> see revisions 1534, 1535 & 1563. > >> > >> But if there are other unicode issues, yes, please bring them to > >> light. I want to say unicode characters should escape properly, but I > >> wouldn't make a huge wager on it. > > > > Well, it *is* for me, since my native language is greek and > > unfortunately if I want to create an application, I have to do a custom > > i18n, so that I would be able to display anything in my own language. > > > > Let's take an example: > > > > public static void main(String[] args) { > > System.out.println("Γεια!"); > > UIApplication.main(args, null, Main.class); > > } > > > > > > and in ObjC > > > > + (void) main___java_lang_String_ARRAYTYPE :(XMLVMArray*)n1 > > { > > XMLVMElem _r0; > > XMLVMElem _r1; > > XMLVMElem _r2; > > _r2.o = n1; > > _r0.o = JAVA_NULL; > > _r1.o = JAVA_NULL; > > [_r2.o retain]; > > _r0.o= [java_lang_System_GET_out]; > > [_r0.o retain]; > > _r1.o= @"\1623\1665\1671\1661!"; > > [((java_io_PrintStream*) _r0.o) println___java_lang_String:_r1.o]; > > [_r0.o release]; > > _r0.o = JAVA_NULL; > > [_r1.o release]; > > _r1.o = [my_food_Main getClass__]; > > > [org_xmlvm_iphone_UIApplicationmain___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:_r2.o:_r0.o:_r1.o]; > > [_r0.o release]; > > [_r1.o release]; > > [_r2.o release]; > > return; > > } > > > > which prints > > *r3v5w1v1!* > > *instead of something like* > > *Γεια!* > > > > > > > > > ------------------------------------------------------------------------------ > > Forrester Wave Report - Recovery time is now measured in hours and > minutes > > not days. Key insights are discussed in the 2010 Forrester Wave Report as > > part of an in-depth evaluation of disaster recovery service providers. > > Forrester found the best-in-class provider in terms of services and > vision. > > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > > > > > > > > _______________________________________________ > > Xmlvm-developers mailing list > > Xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > |