You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Anton Brazhnyk <a....@biconsulting.ws> on 2002/07/09 11:05:00 UTC

[PATCH] Writer encoding in CompressionServletResponseWrapper

Hi,

Applying compression filter to response with non-default character encoding will mess the output. 
The reason is CompressionServletResponseWrapper.getWriter() returns writer with system-default encoding. 
In my case response is UTF-8 and system-default encoding is ISO-something (Latin-1). I get bunch of '?' instead of Cyrillic characters.

Attached patch fixes the problem.

Regards, Anton