On 02/03/18 19:01, Christopher Schultz wrote:


> Would it be better to do this instead:
>  response.setContentType("text/plain;charset="
>           + response.getCharacterEncoding());
> Even if the encoding is *supposed* to be UTF-8 (like the constant
> suggests), in case it isn't for whatever reason, we should use the
> encoding that is actually being used, instead of what we expect to be
> used.

We should be in full control of the response so it can be any encoding
we want. Can't it?


To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to