This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Chinese Encoding  RSS feed

 
mitesh mehta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi....
I am showing chinese Locale support on my page.I am using "response.setContentType("text/html;Charset=Big5");" for displaying the same.
I have no style sheet for displaying of fonts.But the chinese value on the button is Bold on display.
Is it because of the encoding to Big5?
Any help will be appreciated.
Thank you.
Mitesh
 
hahaha hahaha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this:
String str=new String(s.getBytes("8859_1"),"BIG5");
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!