I want to display text in Chinese on my phone. The phone does support Chinese.
I know that I'll have to read text from a file(prolly a text file) that is in UTF8 format.
Do I have to save text in Chinese in this text file or do I have to convert it in to raw unicode (\u0XXX) and then save it to the UTF8 encoded text file.
If I save it as Chinese in UTF8 format, then it appears as small boxes.
Xua Hsin Lin
Joined: Oct 07, 2004
If you save Chinese words in file. You don't need to convert it to UTF-8. Just like- String tmp = new String("大家好"); os.write(tmp.getBytes()); P.S os is OutputStream object
If you read some string from a chinese file byte text = new byte; is.read(text); //is is InputStream String outtext = new String(text,"Big5"); // You need to new a String using Big5 Encoding System.out.println(outtext); [ October 08, 2004: Message edited by: Xua Hsin Lin ]