Game Development Community

Accents Support when reading Files

by Paulo Roberto Nova · in Technical Issues · 08/08/2006 (8:20 am) · 3 replies

Hi.. I buy the book Game Programmer's Guide to Torque to do my Conclusion Work in the University.
I'm trying to read my locales that stay in a .txt file using a FileObject, and this works well...
But when it read my file, it remove the accents in the words... and display squares in place.
What I have to do to keep safe the accents... or it's impossible in that way?

Sorry for the poor english, but I don't know english very well...
Thanks,
Paulo Nova

#1
08/08/2006 (9:56 am)
Paulo, is the text file using ASCII encoding or UNICODE?
#2
08/08/2006 (10:47 am)
Thanks Pat... I really didn't notice that :D
it was in saved in Ansi... now I saved in UTF-8 in notepad and works!!
Hurray!!!

UTF-8 is ASCII, right?

Very Thanks!!!
#3
08/08/2006 (11:23 am)
UTF-8 is UNICODE, but that is ok because Torque likes both of them.

Here is some more information on UNICODE:
http://en.wikipedia.org/wiki/Unicode

That is the english link, but Wikipedia is pretty good about having entries in other languages as well.

I am glad that it worked for you :)