Mar 22, 2004 #1 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!
I need to write servlet in non english language. It seems that instead of letters it appears on the screen as ????? thanks!
Mar 22, 2004 #2 sedj Programmer Aug 6, 2002 5,610 You need to set the character encoding on the HttpServletResponse object : http://java.sun.com/j2ee/1.4/docs/a...e.html#setCharacterEncoding(java.lang.String) The valid IANA charsets are defined here : http://www.iana.org/assignments/character-sets 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 : http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebI18N5.html Upvote 0 Downvote
You need to set the character encoding on the HttpServletResponse object : http://java.sun.com/j2ee/1.4/docs/a...e.html#setCharacterEncoding(java.lang.String) The valid IANA charsets are defined here : http://www.iana.org/assignments/character-sets 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 : http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebI18N5.html