wood burning stoves*
The moose likes Java Micro Edition and the fly likes display unicode characters in midlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "display unicode characters in midlet" Watch "display unicode characters in midlet" New topic
Author

display unicode characters in midlet

lady eowen
Greenhorn

Joined: Jun 10, 2004
Posts: 4
In my midlet, i have a string = "Prüfung" and I need to display this in my phone/emulator as "Pr�fung"

How do I display the named entity i.e. ü to using the limited IO classes in J2ME?

Any help would be greatly appreciated. Thanks.
[ June 10, 2004: Message edited by: lady eowen ]
lady eowen
Greenhorn

Joined: Jun 10, 2004
Posts: 4
I know that the umlaut character (�) is not a unicode but my question still stands because the data i will be displaying are queried from the db and sometimes, i have to display chinese and vietnamese characters also

Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
If you are talking about encoding byte arrays to Strings. You can use the String constructor that takes the "enc" parameter.

If your phone supports the specific language you want to display, the string will be displayed correctly. For non-English phones, you can typically select the language mode from the native menus.
[ June 11, 2004: Message edited by: Michael Yuan ]

Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
Hi I had maybe similar problem with Czech language. I solved it with this method.

lady eowen
Greenhorn

Joined: Jun 10, 2004
Posts: 4
Pavel, thanks for the input but I'm looking for a dynamic solution because I I might forget or omit to include other unicode characters especially Vietnamese and Chinese characters.
[ June 14, 2004: Message edited by: lady eowen ]
lady eowen
Greenhorn

Joined: Jun 10, 2004
Posts: 4
hi. i got the solution now from this link:
http://www.i18nfaq.com/java.html#8

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display unicode characters in midlet