This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes Chinese Encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Chinese Encoding" Watch "Chinese Encoding" New topic
Author

Chinese Encoding

mitesh mehta
Greenhorn

Joined: Aug 29, 2002
Posts: 25
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

Joined: Mar 16, 2003
Posts: 1
try this:
String str=new String(s.getBytes("8859_1"),"BIG5");
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Chinese Encoding