cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Mitchell <...@happygiraffe.net>
Subject Re: character encoding of a HttpServletRequest
Date Mon, 11 Jan 2010 09:40:31 GMT
On Mon, Jan 11, 2010 at 9:12 AM, Jos Snellings <Jos.Snellings@pandora.be>wrote:

> Thanks, I will try CharacterEncodingFilter!
> I will lookup in the code were filtering takes place, because the
> problem is rather that it looks like the form data are filtered twice.
>
> In addition, do I remember right that there used to be a cocoon servlet
> setting,
>    <init-param>
>        <param-name>form-encoding</param-name>
>        <param-value>UTF-8</param-value>
>    </init-param>
>
> Cheers, thanks for the hint. I will post the result... I will certainly
> not be the only person who is confronted with this problem.
>

There are so many places to set the encoding.  And just for fun, you can
have different encodings for query string parameters and form-data in the
body in the same request.  Sigh.

I've had good luck with
CharacterEncodingFilter<http://static.springsource.org/spring/docs/2.5.6/api/org/springframework/web/filter/CharacterEncodingFilter.html>though.

-Dom

Mime
View raw message