Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 96127 invoked from network); 3 Jul 2004 11:18:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jul 2004 11:18:53 -0000 Received: (qmail 5193 invoked by uid 500); 3 Jul 2004 11:18:39 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 5103 invoked by uid 500); 3 Jul 2004 11:18:37 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 4974 invoked by uid 99); 3 Jul 2004 11:18:31 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Sat, 03 Jul 2004 04:18:28 -0700 Received: (qmail 3204 invoked by uid 50); 3 Jul 2004 11:19:45 -0000 Date: 3 Jul 2004 11:19:44 -0000 Message-ID: <20040703111944.3203.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 29900] New: - request params in utf-8 corrupted X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=29900 request params in utf-8 corrupted Summary: request params in utf-8 corrupted Product: Tomcat 5 Version: 5.0.25 Platform: PC OS/Version: Windows XP Status: NEW Severity: Blocker Priority: Other Component: Unknown AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: ashert@huji.013.net.il a parameter sent in request in utf-8 encoding arrives as if it would be sent in another encoding (iso-xxx, windows-xxx or whatever). works fine with tomcat 4.0. doesn't work on tomcat 5.0.xx a jsp code example:

<% request.setCharacterEncoding("UTF-8"); if(request.getParameter("source")!=null) { out.println(request.getParameter("source").length()+"

"); out.println(request.getParameter("source")); StringBuffer sb = new StringBuffer(); for(int i=0; i"+ sb.toString()); } %> as you see, this code block gets a utf-8 encoded parameter from a request, outputs its length, the parameter itself, and its html utf-8 codes. to test it i send a hebrew letter ALEF. on tomcat 4.xx everything works perfect and i get the following response: 7 א &#1488; (in case you don't see it here, it's 7 , alef as utf-8 code and alef's utf-8 code parsed to be visible in browser) with tomcat 5.0.xx i get: 1 ? ? --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org