Game Development Community

Can the StringTable class handle Unicode?

by Igor G · in Torque Game Engine · 06/22/2007 (7:20 am) · 2 replies

The insert function only accepts const char*.
If I want to use the StringTable for Unicode (UTF16, which is a unsigned short), is there something I can do?

Thanks

#1
06/26/2007 (9:43 am)
Would it be safe if I stored UTF-8 strings into StringTable?

I know you shouldn't mix UTF8 with char types, but would there be any downsides to storing my UTF8 strings into StringTable?

Thanks.
#2
03/02/2009 (1:24 am)
I'm wondering the same thing. I see strange results when converting UTF-16 to UTF-8 and maybe the StringTable is messing it up. Have to test some more until I can be sure...