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 Applets and the fly likes How can i show chinese character on Applet 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 » Java » Applets
Bookmark "How can i show chinese character on Applet" Watch "How can i show chinese character on Applet" New topic
Author

How can i show chinese character on Applet

Vishwas sahu
Greenhorn

Joined: Jun 10, 2009
Posts: 3
Acually i am trying to display chinese charater on my Applet, but unable to do that. Please help me.......
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41087
    
  43
Welcome to JavaRanch.

That should be no problem, provided that the proper fonts are installed. What do you mean by "unable to do that" - what does your code currently look like, and how is it failing?


Ping & DNS - my free Android networking tools app
Vishwas sahu
Greenhorn

Joined: Jun 10, 2009
Posts: 3
Hi Ulf Dittmer,
Thanks for reply, I already installed proper fonts for displaying Chinese charcter in applet.

please check the following code,



i am putting chinese string into drawString method but on applet this string is displaying as ??/??

please help me regarding this,

thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41087
    
  43
Are you using the proper "-encoding" switch during compilation? The javac compiler assumes an ASCII source file format unless you do.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can i show chinese character on Applet
 
Similar Threads
Is any Chinese here ?
Chinese Character problem
WA #1.....word association
Chinese Character problem
font in chinese operating system