Jamal,

Unfortunately, there is no easy solution to this at the moment. Except for one module, SPARQLMotion import and export modules at the moment are lacking support for encoding. On Monday, my colleagues and I have decided to review and put custom encoding support to the relevant SPARQLMotion modules in one of the next TopBraid Suite releases.

I assume the setting Project properties as I described you in my earlier email didn't work. The reason might be that since SPARQLMotion implementation is at Java level, only the JVM-level encoding setting would be in effect.

So, currently, you might use this solution for your use case:
1) Exit TopBraid Composer, if already running

2) Set the JVM parameter:
-Dfile.encoding=UTF-16LE

3) Start TopBraid Composer

4) "import data from Excel files" and export it to a temporary ontology. This ontology should be exported in the platform default encoding independent of the JVM encoding. ( While in UTF-16LE, don't edit and save the SPARQLMotion ontology or any other ontology, as it might corrupt the ontology file!!! )

5) Exit TopBraid Composer.

6) Set the JVM parameter:
-Dfile.encoding=UTF-8

7) Start TopBraid Composer

8) import the temporary ontology and "apply some transformations based on TBCME modules + javascript functions using regexp" and "export as text file"

I would suggest trying above or variations of above to make it work.

Gokhan



On 5/17/2011 12:52 AM, J.REZZOUK wrote:
Thanks for all your suggestions. But I am a little bit lost with encoding...

I have in fact a process with the following tasks :
- import data from Excel files (UTF-16LE encoded ?)
- apply some transformations based on TBCME modules + javascript functions using regexp
- export as text file (I would like do get UTF-8 encoded text file)

Depending on the JVM encoding option I use, one of the task doesn't work :
-no specific encoding : export text file is ANSI encoded and javascript regex works except with diacritics
-Dfile.encoding=UTF-8 : Excel import doesn't import diacritics
-Dfile.encoding=UTF-16LE : javascript functions don't work

Jamal
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion 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 TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion 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

Reply via email to