Ok, I try another computer which has Chinese Win7 OS, and I can read Chinese String by a ANSI txt file, but when file change to UTF8, it will show messy code. I add label code as:
String testStr(CharPointer_UTF8(“测试”));
_heading = new Label();
_heading->setText(testStr, true);
Then the application crash as LeakedObjectDetector, but when I change it to String testStr(CharPointer_UTF8(“test”)), the application run well! What’s wrong?
I want to localize and show some Chinese Strings in the app, and I set the Font as “Arial Unicode MS”, would you give me some suggestion?
Thanks