tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Köhler <skoeh...@upb.de>
Subject setCharacterEncoding() für POST-data in JSP
Date Wed, 22 Feb 2006 10:52:34 GMT
Hi,

<%@page contentType="text/html; charset=UTF8"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<html>
<body>
<form method="POST">
<input type="text" name="text">
<input type="submit">
</form>
Test: <%=request.getParameter("text")%>
</body>
</html>

The above JSP-page will not work properly. The POST-data is decoded with
ISO-8859-1 instead of UTF-8 in Tomcat 5.5.

Is this a bug or a feature?

If it's a bug - well - then a fix would be nice.

If it's a feature - well - what's the reason for this?


Thanks
  Sven


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message