Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i show chinese character on Applet

 
Vishwas sahu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Acually i am trying to display chinese charater on my Applet, but unable to do that. Please help me.......
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the proper "-encoding" switch during compilation? The javac compiler assumes an ASCII source file format unless you do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic