Cocos2D and UTF-8 (german characters)

486 views Asked by At

I have a .xml file containing some text. The text also has some German charcters (ä, ü, ö) in it. The XML file is encoded as UTF-8, wich makes it appear fine in every text editor and xcode.

But when showing the text on a Cocos2D CCLabelTTF (iPhone/iPad), the special characters get messed up. They are replaced by one or two ugly characters I have never seen before ;-)

Should I use a different encoding? Or is there a way to make Cocos2D get that right?

BTW: If I enter the same text directly into xcode (without using the xml file), the text shows up correctly on the label...

0

There are 0 answers