Unicode support for DrawableText()
Posted: 2014-06-26T07:57:23-07:00
Hi!
I need to create a DrawableText() object in C++ that support Unicode characters. I noticed that the constructor for DrawableText() is taking an encoding as an optional parameter. I tried the following: converting a wstring to an utf8 encoded string, pass this string as the text parameter and pass "UTF-8" as the encoding parameter. But it didn't work -- it displays an ? on screen instead of each Unicode character.
Would you have some advice for me?
Many thanks!
Julie
I need to create a DrawableText() object in C++ that support Unicode characters. I noticed that the constructor for DrawableText() is taking an encoding as an optional parameter. I tried the following: converting a wstring to an utf8 encoded string, pass this string as the text parameter and pass "UTF-8" as the encoding parameter. But it didn't work -- it displays an ? on screen instead of each Unicode character.
Would you have some advice for me?
Many thanks!
Julie