Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP! displaying chinese characters

 
Norman Vito
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I'm having problems displaying chinese characters for the Nokia emulator. I am using Nokia_3300_SDK_beta_05 as my emulator.
public AnXaMLReader(String url) throws IOException {
InputStream is = this.getClass().getResourceAsStream(url);
istream = new InputStreamReader(is, "UTF8");
StringBuffer buf = new StringBuffer();
int ch;
while ((ch = istream.read()) > -1) {
buf.append((char)ch);
}
istream.close();
content = buf.toString();
}
The thing is, I have to save my text file in ANSI format, instead of UTF8 format. Saving it this way will show the correct chinese characters on the emulator. BUT! in between 2 chinese characters, there are 2 BOXES!!! How can I get rid of these?!?!?!
One more thing, when I install it on an actual phone unit, instead of showing chinese characters, I only got boxes! 2 boxes to represent 1 chinese character!
Please help! Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic