This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes many language how to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "many language how to?" Watch "many language how to?" New topic

many language how to?

senu shankar

Joined: Feb 19, 2004
Posts: 3
I have English , Chinese, Japanese and Hindi on my mobile phone. I want to use an application in Tamil (it is an Indian language). How to implement this? Do I have to load tamil ttf font in resource folder and then use unicode? Or do I have to use some other form of ttf? Pl help resolve this.
thanks In advance.
senu shankar

Joined: Feb 19, 2004
Posts: 3
doesn't any body know? Strange. Experts on board? Hasn't ANYONE developed a foriegn langauge midlets?
David Price
Ranch Hand

Joined: Jan 22, 2003
Posts: 93
If your phone doesn't support Tamil natively (e.g., you can't switch the menus to use Tamil), then it won't support Tamil in MIDlet UI components either. In this case, you could still display Tamil characters in a MIDlet by including the font as a PNG image file in the MIDlet's JAR file and drawing the characters on a MIDP 'Canvas' (use a clip window to make only the needed character get drawn). However, entering text in Tamil would probably be very clumsy.
If the phone does support Tamil natively, then your MIDlet should just automatically work in Tamil too. Java language characters and Strings all use Unicode, so a MIDlet should work in Tamil without modification: just use Tamil characters for all the messages you display, and e.g. TextFields will use Tamil for input. If your messages are in your Java source code and that source code is in ASCII or ISO-8859-1, you'll have to represent the Tamil characters using Java's Unicode escape sequences, e.g.: '\u01C9'.
Don't get me started about those stupid light bulbs.
subject: many language how to?
Similar Threads
J2ME adding new fonts
In English LOVE, In French ?
localization doubt
Including fonts in PDFs using iText
Validating other language chars