tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Brazhnyk" <a.brazh...@biconsulting.ws>
Subject [PATCH] Writer encoding in CompressionServletResponseWrapper
Date Tue, 09 Jul 2002 09:05:00 GMT
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
Mime
View raw message