Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 92555 invoked from network); 10 Apr 2003 16:37:45 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Apr 2003 16:37:45 -0000 Received: (qmail 6989 invoked by uid 97); 10 Apr 2003 16:39:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 6982 invoked from network); 10 Apr 2003 16:39:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 10 Apr 2003 16:39:38 -0000 Received: (qmail 91057 invoked by uid 500); 10 Apr 2003 16:37:27 -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 91046 invoked from network); 10 Apr 2003 16:37:26 -0000 Received: from mail1.uunet.ca (209.167.141.3) by daedalus.apache.org with SMTP; 10 Apr 2003 16:37:26 -0000 Received: from newtradetech.com (h209-71-207-130.gtconnect.net [209.71.207.130]) by mail1.uunet.ca with ESMTP id <668073-20978>; Thu, 10 Apr 2003 12:21:07 -0400 Message-ID: <3E959AD3.60506@newtradetech.com> Date: Thu, 10 Apr 2003 12:24:51 -0400 From: Andre John Mas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List CC: David.Oxley@workplace-systems.plc.uk Subject: Re: UTF-8 end to end - what am I doing wrong? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Oxley, David wrote: > I had loads of problems getting UTF-8 to work. The problem you're getting > sounds like the POST is being read as ISO-8859-1, because the client doesn't > tell the server (or if it does, it can't be relied upon). Use this in the > servlet to get the POST. > String result = req.getParameter(parm); > String value = new String(result.getBytes("ISO-8859-1"), "UTF-8"); I just tried this and it isn't likely to work in my case. Since what I am sending is XML passed as the content there are no parameters that can be found using the above approach. Follows is the sort of message being sent (header included, and I have reduced the example to the essentials): --- EXAMPLE START POST /myapp/myservlet HTTP/1.1 Content-Length: 1075 Host: localhost user-agent: experimental Content-Type: text/xml; charset=UTF-8 --- EXAMPLE END --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org