Jetty default encoding

Cantor, Scott cantor.2 at osu.edu
Wed Jun 4 16:47:21 EDT 2014


On 6/4/14, 4:44 PM, "Marvin Addison" <marvin.addison at gmail.com> wrote:

>> There doesn't appear to be a simple connector property like Tomcat has
>>to
>> universally switch things to UTF-8.
>
>You mean URIEncoding="UTF-8"?

Yes.

> Assuming yes, then in my experience
>that's not sufficient in some cases to change the encoding globally to
>UTF-8. The recipe that worked for us was a combination of pageEncoding
>JSP directive, specifying charset=UTF-8 in the content-type header,
>and a servlet filter that set both request and response encoding [1].
>I believe only the servlet filter is strictly required, but we set
>_everything_ to UTF-8 to be safe since it's little trouble.

We're already including lots of other filters, so we probably should add
it.

-- Scott




More information about the dev mailing list