Hi,
I'am using ISO-8859-2 for pages encoding.
I'm using <%@page contentType="text/html; charset=iso-8859-2"%> in header of each
file.
But Tomcat doesn't use information for page encoding to correctly decode strings from
forms.
It's interesting that on my machine at home it works and ont comapany machine doesn't
work.
(Same tomcat, Same OS Win2000 with czech locales).
How Tomcat decides right encoding for data form HTML forms ? How can i set it ?
Setting local in response, or request request.setLocale() doesn't has effect.
Thanks for answer
Jakub Dadak
Small example:
<%@page contentType="text/html; charset=iso-8859-2"%>
<html>
<head><title>JSP Page</title></head>
<body>
<%
String test = request.getParameter("test");
out.println("Test=" + test + "<br>");
%>
<form action="/zb/jazyk.jsp">
<input type=text name=test value="P��li� �lu�ou�k� k�� �p�l ��belsk� k�dy.P��LI�
�LU�OU�K� K�� �P�L ��BELSK� K�DY.">
<input type=submit value=odeslat>
</form>
</body>
</html>
--
,{(~)~(}, Dadak Jakub Brain Systems s.r.o.
,( ((~) ){){} [EMAIL PROTECTED] e-business solutions
())~{)}{{}~()} http://www.brainsys.cz Rybkova 1, Brno 602 00
`~^ ^~{()} Tel. +420 5 41148704 Fax. +420 5 41148852
~~ Motto: Things are different !
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]