You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ronald Klop <ro...@base.nl> on 2004/10/12 11:26:13 UTC

unsetting characterEncoding?

Hello,

Is it possible to unset the character encoding for some requests.
I call setCharacterEncoding("windows-1252") for every request in a filter.
But now my image/jpeg servlets add charset to the content-type.
If I now call setCharacterEncoding(null) in my image-servlet it doesn't unset the charset.

How can I do this?

Ronald.

PS: I know it is not necessary, because the browser will ignore this parameter to content-type, but is just saves those extra bytes. :-)

Re: unsetting characterEncoding?

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Ronald,

> Is it possible to unset the character encoding for some requests.
> I call setCharacterEncoding("windows-1252") for every request in a filter.
> But now my image/jpeg servlets add charset to the content-type.
> If I now call setCharacterEncoding(null) in my image-servlet it doesn't unset the charset.
> 
> How can I do this?
You can configure your filter-mapping so your image/jpeg servlets don't
get filtered.

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai <sh...@gmail.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org