You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dmitry <di...@teztour.com> on 2005/08/30 08:29:42 UTC
How to remove "charset" from tomcat response?
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.
--
Best regards,
Dmitry mailto:dimmik@teztour.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to remove "charset" from tomcat response?
Posted by Mark Thomas <ma...@apache.org>.
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