tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: How to strip ;charset from Content-Type on 4.1.29?
Date Mon, 17 Nov 2003 09:24:08 GMT
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


Mime
View raw message