This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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?
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Are you using the proper "-encoding" switch during compilation? The javac compiler assumes an ASCII source file format unless you do.
 
Have you checked out Aspose?
 
subject: How can i show chinese character on Applet
 
It's not a secret anymore!