LATIN1 Characters
by Oswaldo C. Filho · in Torque Game Builder · 01/04/2007 (4:32 am) · 2 replies
Hello for all,
How i use LATIN1 character page in TGB ?
tnkx!
How i use LATIN1 character page in TGB ?
tnkx!
About the author
Currently producing the game HellEscape: http://www.baguettegames.com/
#2
Thanks
05/19/2007 (8:03 pm)
I have another problem (I don't know is the same), the latin characters work if I write in a text object in TGB editor (not the GUI text object), but if I try to write in the same text object from a script file the latin characters don't work :-/Thanks
Torque Owner AzraelK
TGB has UTF8 support, which contains all character types (including japanese) but theres a catch, in order to read TEXT in in UTF8 the file must be in UTF8 format not ANSI (you will need a program such as Notepad++ to convert it),
Unfortunately though TGB doesnt read UTF for its scripts so if the text is in your script, it will return an error if you try to compile it. There are only 3 ways to deal with it
1.-Use a different FILE in UTF8 for all your text and read it using the OpenFile command and such. (yeah I know is a pain, but in the end is worth it)
2.-Save your script file as an UTF8 then resave it as ANSI, your LATIN characters will be internally transformed to UTF8 complaint code (careful though some characters might not be recognized with this method) so they will be recognized by the TGB UTF8 reader. (with some luck)
3.-Just save yourself all the trouble and use a Bitmap Font or in (some cases) a Bitmap it will look better and you wont have to worry about the format at all. (best solution)