tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quinten Verheyen" <>
Subject char encoding bug in tomcat 5.0.25 ?
Date Wed, 15 Dec 2004 08:28:14 GMT
Hi, *maybe* I'm experiencing a bug in Tomcat 5.0.25, but this is pure assumption, please help
me with this troublesome character encoding problem.

The test page below gets a request parameter and shows it in a textarea. The goal is to test
if special characters are translated wrongly .. (would actually occur if encoding/decoding
set isn't the same). The problem is in Tomcat 5.0.25 the character 'é' is translated into
é, in Tomcat 4.1.29 it stays the same.

Note: when providing the paramter as a get, it works.


<%@ page pageEncoding="utf-8" language="java" %>

	String text = request.getParameter("text");
	if (text == null) {
		text = "";

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test page</title>

<FORM name="test" method="POST">
	<textarea name="text"><%=text%></textarea>
	<input type="submit" />


Thx in advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message