Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 12567 invoked from network); 27 Oct 2008 19:20:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2008 19:20:55 -0000 Received: (qmail 54287 invoked by uid 500); 27 Oct 2008 19:20:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53815 invoked by uid 500); 27 Oct 2008 19:20:46 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 53804 invoked by uid 99); 27 Oct 2008 19:20:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 12:20:46 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=SPF_PASS,WEIRD_PORT,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rosenberg.leon@googlemail.com designates 209.85.198.240 as permitted sender) Received: from [209.85.198.240] (HELO rv-out-0708.google.com) (209.85.198.240) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 19:19:30 +0000 Received: by rv-out-0708.google.com with SMTP id c5so2377663rvf.24 for ; Mon, 27 Oct 2008 12:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=bk+Cxk0WQZilbsi1qzHy3cXLyfbbPaa5cTmfNiDqLqU=; b=QqswEDlWk1uqwWirPYnQfrbZIh3RXInemY72yCoXRg4WcaauW7pqDpsA2bA4IlXZqv 93jD6HJKAVBdpprb+KGa/VD64cD0SWG1TBgB9oRpkVZqFgxuefxOSXlrQT4jO5b6USB0 /f839MeG+LJhQNUBZZbUilSlCoXsREMar1Y9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UbB6eqDcH8FuEXLJGVTGFtcw0GbROT4Fx+ClkklBiQfaImow94AvMUVU3rItFYDw3S DLKo3P2087Ja1zF9WN3KrAgM/5hQnUqtZI6gSFciVgAw2vEk06XMJrJVQPr9XduOlDMr RXv6fPBDuPdc/eDM3P5mqv2hyW18BCd7iGvrM= Received: by 10.114.152.7 with SMTP id z7mr5543922wad.151.1225135210624; Mon, 27 Oct 2008 12:20:10 -0700 (PDT) Received: by 10.114.79.17 with HTTP; Mon, 27 Oct 2008 12:20:10 -0700 (PDT) Message-ID: <327858f40810271220s6cb40ebt96766d0f266efcd5@mail.gmail.com> Date: Mon, 27 Oct 2008 20:20:10 +0100 From: "Leon Rosenberg" To: "Tomcat Users List" Subject: Re: Tomcat 6 - Problems with encoding In-Reply-To: <20193292.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20193292.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org =80 sign is not part of ISO-8859-1 use ISO-8859-15 instead. regards Leon On Mon, Oct 27, 2008 at 7:19 PM, JSimas wrote: > > Hi. > > I'm using Apache Tomcat 6.0.14, wich deploys a Struts 1.x web application= . > > I was using encoding ISO-LATIN-1 but i was having problems with the euro = (=80) > char. Every time that i use a =80 char in a text box or in a text area, w= hen > the request arrives at struts Request Processor the value is already > deformed. > > I've tried to change the encoding into UTF-8 but i also have problems. > > Using a HTTP Sniffer, this is what i could gather: > > HTTP Post Request into Tomcat: > > POST /DRCIEWeb/drcieFlow.do2 HTTP/1.1 > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > application/x-shockwave-flash, application/xaml+xml, > application/vnd.ms-xpsdocument, application/x-ms-xbap, > application/x-ms-application, application/vnd.ms-excel, > application/vnd.ms-powerpoint, application/msword, > application/x-silverlight, application/x-silverlight-2-b2, */* > Referer: http://localhost:2001/WebApp/webFlow.do2 > Accept-Language: pt > Content-Type: application/x-www-form-urlencoded > UA-CPU: x86 > Accept-Encoding: gzip, deflate > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR > 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR > 3.0.04506.648; .NET CLR 3.5.21022) > Host: localhost:2001 > Content-Length: 733 > Connection: Keep-Alive > Cache-Control: no-cache > Cookie: menuPos=3D%260-1%261-1; JSESSIONID=3D665E5243A08AF2A83D586E918148= 7F64 > _flowExecutionKey=3D_cDB824BB0-C9AA-F9D1-519F-27E8542F8DE9_k82B5EDEF-9F28= -712A-FBAE-5D2965221283&anoEconomico=3D2008&siglaDirecaoServico=3D&requeren= te.nif=3D&requerente.nome=3D&nomescgp=3D&ac=3D&processoPai=3D@%E2%82%AC > > The bolded text is the input text wich is: @=80. However the =80 char is = encoded > using UTF-8 wich is represented by the %E2%82%AC string. > > When the request arrives in the Request Processor of Struts this is the > value: @=E2=82=AC > > There is probably something that i should configure in Tomcat for this to > work.. however i'm completely lost! > > Can anyone help me please > > Thanks in advance. > > Best Regards > > Jo=E3o Simas > > -- > View this message in context: http://www.nabble.com/Tomcat-6---Problems-w= ith-encoding-tp20193292p20193292.html > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org