Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing servlet in non english langauge

Status
Not open for further replies.

IlanaH

Programmer
Mar 22, 2004
1
IL
I need to write servlet in non english language.
It seems that instead of letters it appears on the screen as ?????

thanks!
 
You need to set the character encoding on the HttpServletResponse object :

The valid IANA charsets are defined here :

So for example, for Western langauges, you would set

response.setCharacterEncoding("IS0-8859-1");

or for Japanese :

response.setCharacterEncoding("Shift_JIS")


This link may also be of use :
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top