You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mark Thomas <ma...@apache.org> on 2017/03/01 13:31:41 UTC

Default character encoding to be UTF-8 for 9.0.x

Servlet 4.0 adds the ability to set a default request character encoding
and a default response character encoding in web.xml and
programmatically. The spec allows containers to specify their own
defaults via vendor specific config. We can do this via conf/web.xml.

Therefore, I would like to propose we configure, via conf/web.xml, UTF-8
as the default request and default response character encoding.

Thoughts, comments and/or objections?

Mark

P.S. Because of the way this is implemented, we could do something
similar with 8.5.x as well via conf/context.xml


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


Re: Default character encoding to be UTF-8 for 9.0.x

Posted by Enrico Olivelli <eo...@gmail.com>.
My two cents...
It would be great! The backport to 8.5 too

I always need to add some filter or some lines of code to every servlet.

Enrico

Il mer 1 mar 2017, 14:31 Mark Thomas <ma...@apache.org> ha scritto:

> Servlet 4.0 adds the ability to set a default request character encoding
> and a default response character encoding in web.xml and
> programmatically. The spec allows containers to specify their own
> defaults via vendor specific config. We can do this via conf/web.xml.
>
> Therefore, I would like to propose we configure, via conf/web.xml, UTF-8
> as the default request and default response character encoding.
>
> Thoughts, comments and/or objections?
>
> Mark
>
> P.S. Because of the way this is implemented, we could do something
> similar with 8.5.x as well via conf/context.xml
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
> --


-- Enrico Olivelli