Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 27885 invoked from network); 17 Nov 2003 09:25:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Nov 2003 09:25:32 -0000 Received: (qmail 96153 invoked by uid 500); 17 Nov 2003 09:24:47 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 96125 invoked by uid 500); 17 Nov 2003 09:24:47 -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 96111 invoked from network); 17 Nov 2003 09:24:47 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.177) by daedalus.apache.org with SMTP; 17 Nov 2003 09:24:47 -0000 Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng3.kundenserver.de with esmtp (Exim 3.35 #1) id 1ALfcx-0001hd-00 for tomcat-user@jakarta.apache.org; Mon, 17 Nov 2003 10:24:59 +0100 Received: from [217.228.243.206] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1ALfcx-0005V7-00 for tomcat-user@jakarta.apache.org; Mon, 17 Nov 2003 10:24:59 +0100 Message-ID: <3FB893B8.301@cyberspaceroad.com> Date: Mon, 17 Nov 2003 10:24:08 +0100 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en, en-us, de-de MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How to strip ;charset from Content-Type on 4.1.29? References: <1068822493.12543.37.camel@localhost.localdomain> In-Reply-To: <1068822493.12543.37.camel@localhost.localdomain> 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: minotaur-2.apache.org 1.6.2 0/1000/N On 11/14/2003 04:08 PM Bryan Field-Elliot wrote: > When I call from a Servlet: > > response.setContentType("text/xml"); > > Tomcat changes the header to read: > > Content-Type: text/xml;charset=ISO-8859-1 > > The ;charset is killing us interoping with another vendor and they can't > change their code. I've tried: > > response.setLocale(null); > > but it bombs Tomcat. > > This is Tomcat 4.1.29. > > Any help would be appreciated. Bryan, I think that the servlet spec from Sun specifies that the default charset should be iso-8859-1. Are you trying to keep the charset= name/value pair completely out of the content-type header? I don't think it works that way basically. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org