File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Marshal

Joined: Mar 22, 2005
Posts: 42951
    
  72
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
Marshal

Joined: Mar 22, 2005
Posts: 42951
    
  72
Are you using the proper "-encoding" switch during compilation? The javac compiler assumes an ASCII source file format unless you do.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i show chinese character on Applet