Paul, This encoding issue seems to be from the way TBC handles content for the post request. The sml:content object is treated as a string at the sml:PostRequest module implementation level. So, while the result of XSLT transformation in SPARQLMotion is a XML object, it gets converted to a string object for the post request.
One possible work-around for this is to set the flag: -Dfile.encoding=UTF8 in [TBC-installation-folder]/TopBraid Composer.ini.orig file. Here are the instructions (slightly modified from the original instructions in my related posts on an older issue at: https://groups.google.com/d/topic/topbraid-users/2yZn2dn5VTA/discussion ) 1) Exit TopBraid Composer, if it is running. 2) At the installation folder of TopBraid Composer, open "TopBraid Composer.ini.orig" in any text editor. (it is an .orig file, because the actual .ini file gets overwritten at startup - this is a new design as of TBC-3.6.x). 3) Add the following line (flag) at the very end of the file (don't forget the "-" character): -Dfile.encoding=UTF-8 4) Start TopBraid Composer. 5) Now all the string encodings in TopBraid Composer and SPARQLMotion will be in UTF-8 encoding by default. However, use this work-around with care, because it may cause issues with non-UTF-8 encoded files in your workspace. In such a case, you could simply remove the flag and restart TBC. I will check with my colleagues on how and when we will have a solution for this issue. Gokhan On Mon, Jun 25, 2012 at 6:51 PM, PaulZH <[email protected]> wrote: > I have as a result of an XSLT transformation XML which is well-formed. > <http://www.vlaanderen.be/school/S013938> < > http://purl.org/dc/terms/title> "Vrije Kleuterschool - *Mozaïek*". > > However when I pass this xml as parameter sml:content to an instance of > sml:PostRequest the receiving server is complaining > "The request sent by the client was syntactically incorrect (Invalid UTF-8 > start byte 0x95 (at char #1829, byte #-1))." > and indeed when I capture the http transmission I see > <http://www.vlaanderen.be/school/S013938> < > http://purl.org/dc/terms/title> "Vrije Kleuterschool - Moza••ek". > > > -- > -- You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include Enterprise > Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid > Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, > send email to [email protected] To unsubscribe from this > group, send email to [email protected] For more > options, visit this group at > http://groups.google.com/group/topbraid-users?hl=en -- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
