Jamal,
I was just looking further and saw that after setting that VM argument,
and running the script, opening the generated text file in UltraEdit,
the file was shown to be in UTF-8 encoding.
Gokhan
On 5/15/2011 9:07 PM, Gokhan Soydan wrote:
Jamal,
There is no direct way of specifying encoding in sml:ExportToTextFile
or in a SPIN/SPARQL function. However, you could set it up at the VM
arguments at TopBraid Composer startup.
Here are the instructions:
1) Exit TopBraid Composer, if it is running.
2) At the installation folder of TopBraid Composer, open "TopBraid
Composer.ini" in any text editor.
3) Add the following line at the very end of the file (don't forget
the "-" character):
-Dfile.encoding=UTF-8
4) Start TopBraid Composer.
5) Now all your files in your workspace are in UTF-8 encoding
including the ones that you create.
I couldn't find out how to check for or set the text encoding outside
TopBraid Composer. I believe the application that you mentioned would
figure out if it is UTF-8 or not once you do the export.
Let me know if this works.
Gokhan
On 5/15/2011 8:51 AM, J.REZZOUK wrote:
Hello Gokhan,
I am in the context of the following use-case : I am using SKOS-XL to
manage a terminology and associated lexical information. I would like
to export that as linguistic resources for a text-mining solution.
But input format has some specific constraints : text-file+specific
syntax + UTF-8 encoding. Today, when I open the text file it is ANSI
encoded,
Do you think I have to call a function to encode string in UTF8 in
sml:text property of the sml:ExportToTextFile module ?
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
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
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
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en