Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 21707 invoked from network); 15 Dec 2004 10:27:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Dec 2004 10:27:34 -0000 Received: (qmail 16592 invoked by uid 500); 15 Dec 2004 10:03:18 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 16540 invoked by uid 500); 15 Dec 2004 10:03:17 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 16414 invoked by uid 99); 15 Dec 2004 10:03:16 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from proxy.qas.com (HELO MAIL2.qas.com) (195.172.82.234) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Dec 2004 02:03:11 -0800 Received: from orion.qas.com (orion.qas.com [150.150.100.34]) by MAIL2.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Wed, 15 Dec 2004 09:47:48 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: char encoding bug in tomcat 5.0.25 ? Date: Wed, 15 Dec 2004 09:47:48 -0000 Message-ID: <5684A7E6FB10504393A2806C1F4C021005AF8097@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: char encoding bug in tomcat 5.0.25 ? Thread-Index: AcTigAT5AZFXRzwtSvaCZhwOoihCaQABMp+wAABhfzAAAS6+wA== From: "Allistair Crossley" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N oh yes sorry, it's because you need to set request encoding on your form = post. use a servlet filter. there was a post within the past week where = I posted the full code of such a filter. > -----Original Message----- > From: Quinten Verheyen [mailto:q.verheyen@ringring.be] > Sent: 15 December 2004 09:16 > To: Tomcat Users List > Subject: RE: char encoding bug in tomcat 5.0.25 ? >=20 >=20 > I tried that option already, doesn't make a difference .. >=20 > <%@ page pageEncoding=3D"utf-8" contentType=3D"text/html;=20 > charset=3DUTF-8" language=3D"java" %> > or > <%@ page pageEncoding=3D"utf-8" language=3D"java" %> > <%@ page contentType=3D"text/html; charset=3DUTF-8" %> >=20 > Q >=20 > > -----Original Message----- > > From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com] > > Sent: 15 December 2004 10:03 > > To: Tomcat Users List > > Subject: RE: char encoding bug in tomcat 5.0.25 ? > >=20 > >=20 > > you-re missing a page directive > >=20 > > <%@ page contentType=3D"text/html; charset=3DUTF-8" %> > >=20 > > > -----Original Message----- > > > From: Quinten Verheyen [mailto:q.verheyen@ringring.be] > > > Sent: 15 December 2004 08:28 > > > To: Tomcat Users List (E-mail) > > > Subject: char encoding bug in tomcat 5.0.25 ? > > >=20 > > >=20 > > > Hi, *maybe* I'm experiencing a bug in Tomcat 5.0.25, but this=20 > > > is pure assumption, please help me with this troublesome=20 > > > character encoding problem. > > >=20 > > > The test page below gets a request parameter and shows it in=20 > > > a textarea. The goal is to test if special characters are=20 > > > translated wrongly .. (would actually occur if=20 > > > encoding/decoding set isn't the same). The problem is in=20 > > > Tomcat 5.0.25 the character '=E9' is translated into =C3=A9, in=20 > > > Tomcat 4.1.29 it stays the same. > > >=20 > > > Note: when providing the paramter as a get, it works. > > >=20 > > > =3D=3D=3D=3D=3D=3D=3D=3D > > > test.jsp > > > =3D=3D=3D=3D=3D=3D=3D=3D > > >=20 > > > <%@ page pageEncoding=3D"utf-8" language=3D"java" %> > > >=20 > > > <% > > > request.setCharacterEncoding("utf-8"); > > > String text =3D request.getParameter("text"); > > > if (text =3D=3D null) { > > > text =3D ""; > > > } > > > %> > > >=20 > > > > > > > > > charset=3Dutf-8"> > > > test page > > > > > > > > >=20 > > >
> > > > > > > > >
> > >=20 > > > > > > > > >=20 > > > Thx in advance, > > > Quinten > > >=20 > > >=20 > >=20 > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail:=20 > tomcat-user-help@jakarta.apache.org > > >=20 > > >=20 > >=20 > >=20 > > =20 > > ------------------------------------------------------- > > QAS Ltd. > > Developers of QuickAddress Software > > www.qas.com > > Registered in England: No 2582055 > > Registered in Australia: No 082 851 474 > > ------------------------------------------------------- > > > >=20 > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >=20 > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org