Subject | Re: [Firebird-Java] Re: JSP Turkish Character Problems.... |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-03-15T18:51:15Z |
> in the jsp page i run this code:So it seems that everything is correct, the question mark '?' has code 63 (I
>
> String myStr = request.getParameter("NAME");
> char[] chars = myStr.toCharArray();
>
> for(int i = 0; i < chars.length; i++)
> out.println("chars[" + i + "] = " + ((int)chars[i]));
>
> it gives this output :
> chars[0] = 222 chars[1] = 221 chars[2] = 208 chars[3] = 220
assume that your national characters have exactly that codes in WIN1254 code
page).
Now you have to ensure that you have set the correct content encoding for
your JSP. Also check all internationalization settings in your JSP container
as well as in your webserver (if it is for example Apache+Tomcat binding).
Roman