From users-return-143923-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Mon Apr 10 09:51:02 2006 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 66996 invoked from network); 10 Apr 2006 09:51:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Apr 2006 09:51:01 -0000 Received: (qmail 22902 invoked by uid 500); 10 Apr 2006 09:50:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22880 invoked by uid 500); 10 Apr 2006 09:50:47 -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 22869 invoked by uid 99); 10 Apr 2006 09:50:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 02:50:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.109.254.3] (HELO mail19.messagelabs.com) (193.109.254.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Apr 2006 02:50:46 -0700 X-VirusChecked: Checked X-Env-Sender: mark.hagger@m-spatial.com X-Msg-Ref: server-24.tower-19.messagelabs.com!1144662618!38922509!1 X-StarScan-Version: 5.5.9.1; banners=m-spatial.com,-,- X-Originating-IP: [212.44.22.81] Received: (qmail 8708 invoked from network); 10 Apr 2006 09:50:18 -0000 Received: from no-reverse.dialnet.com (HELO mailhost.m-spatial.com) (212.44.22.81) by server-24.tower-19.messagelabs.com with SMTP; 10 Apr 2006 09:50:18 -0000 Received: from giga.cambridge.m-spatial.com ([10.0.0.71]) by mailhost.m-spatial.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 10 Apr 2006 10:50:18 +0100 Subject: Re: Help with filter affecting Chinese words in request parameters From: Mark Hagger To: Tomcat Users List In-Reply-To: <4439D69F.3070506@cygnusb2b.com> References: <4439D69F.3070506@cygnusb2b.com> Content-Type: text/plain Date: Mon, 10 Apr 2006 10:50:19 +0100 Message-Id: <1144662619.4163.49.camel@giga.cambridge.m-spatial.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Apr 2006 09:50:18.0235 (UTC) FILETIME=[2CB844B0:01C65C84] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, This may not be relevant here, but one standard "gotcha" that keeps hitting me is a difference in the platforms default encoding. Ie some machines have a default of ISO-88591, some CP1252, and some UTF-8. The JVM then just merrily does stuff using the default encoding, and thus developers get a working system and the production systems don't... In some ways its better to have developers all working with different defaults, so at least issues like this get caught early. A thought anyway. Mark On Sun, 2006-04-09 at 22:53 -0500, Mike Sabroff wrote: > So, what are the differences on the machines that have the problem vs > the ones that don not?? > > roy tang wrote: > > Hi, > > > > I'm new to this list, hope someone here can help. :) > > > > We're developing a webapp that should be able to accept Chinese input. We > > also have a filter installed in the webapp for some auditing that we need to > > do per request that's processed. However, we've found that when we submit a > > form with Chinese inputs, the Chinese chars end up saved to the database as > > HTML-escaped entities. (i.e. 罢 or such). > > > > So we backtrace, and we find that removing the filter from web.xml fixes the > > problem. We debug through the doFilter() method of our filter, but we find > > that at the start of the method, request.getParameter("PARAM_NAME") already > > shows the input as HTML-escaped entities. > > > > The weird thing is, this doesn't happen on all our Tomcat > > installations...each of our developers has a local Tomcat running, and it > > only happens for one or two. But it also happens on our Test (QA) server, > > such that our testing team always encounters the problem. > > > > Is there any particular language or encoding setting that I should be > > checking? > > > > Thanks a lot :D > > > > Roy > > > ________________________________________________________________________ This email has been scanned for all known viruses by the MessageLabs SkyScan service. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org