tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: How to remove "charset" from tomcat response?
Date Tue, 30 Aug 2005 17:46:08 GMT
Dmitry wrote:
> Hello Tomcat,
> 
> I am trying to return an XML with content-type "text/xml"
> Without any charset specified in header.
> 
> I set <%@page contentType="text/xml"%> in my jsp, expecting header
> Content-Type: text/xml
> 
> But despite the page directive given I have header
> Content-Type: text/xml;charset=ISO-8859-1
> 
> Is it possible to avoid "charset=..." clause?
> Tomcat 5.5.9 on Windows.

If you use JSPs, there will always be a charset as per section JSP.4.2 
of the JSP 2.0 spec.

Mark


---------------------------------------------------------------------
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