How to display Chinese in screen?
How to display chineses in screen?
You can create multibyte character strings using the MAUtil::WString() class. The function maDrawTextW() will write Chinese characters to the screen, provided that the phone you're using supports it. MAUI::Fonts doesn't support WString() at the moment, and it only supports UTF-7 character sets, but if you've got the fonts installed on your PC, you can create a Hanzi 7-bit font following this tutorial here http://www.mosync.com/documentation/tutorials/creating-new-fonts
I think that there is a plan to support multibyte (utf-16) character sets in the font classes, but I don't think that it is scheduled in the short term.
Hope this helps!
Hi, but where can i find the function maDrawTextW()? and the class WString? Which header file should i include?
maDrawTextW is in maapi.h, and WString is in MAUtil::String.
Note that you need to use one of the later nightly build to use those functions as they're not in the 2.3 version.