you-re missing a page directive <%@ page contentType="text/html; charset=UTF-8" %>
> -----Original Message----- > From: Quinten Verheyen [mailto:[EMAIL PROTECTED] > Sent: 15 December 2004 08:28 > To: Tomcat Users List (E-mail) > Subject: char encoding bug in tomcat 5.0.25 ? > > > 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. > > ======== > test.jsp > ======== > > <%@ page pageEncoding="utf-8" language="java" %> > > <% > request.setCharacterEncoding("utf-8"); > String text = request.getParameter("text"); > if (text == null) { > text = ""; > } > %> > > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> > <title>test page</title> > </head> > <body> > > <FORM name="test" method="POST"> > <textarea name="text"><%=text%></textarea> > <input type="submit" /> > </form> > > </body> > </html> > > Thx in advance, > Quinten > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software <a href="http://www.qas.com">www.qas.com</a> Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
