This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Chinese Encoding" Watch "Chinese Encoding" New topic

Chinese Encoding

mitesh mehta

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

Joined: Mar 16, 2003
Posts: 1
try this:
String str=new String(s.getBytes("8859_1"),"BIG5");
subject: Chinese Encoding
It's not a secret anymore!