This, to notify you that the solution you suggested works fine:
So, for all cocoon users: if you are experiencing problems with the
character encoding of POST form data (which is very likely to occur):
the problem is generally cured by
Inserting the following code in web.xml

<filter>
    <filter-name>encodingFilter</filter-name>

<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    <init-param>
        <param-name>encoding</param-name>
        <param-value>UTF-8</param-value>
    </init-param>
    <init-param>
        <param-name>forceEncoding</param-name>
        <param-value>true</param-value>
    </init-param>
 </filter>

 <filter-mapping>
    <filter-name>encodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
 </filter-mapping>

(Insert it as the first children under the <web-app> root element)

Jos


On Mon, 2010-01-11 at 08:54 +0000, Dominic Mitchell wrote:
> 2010/1/10 Jos Snellings <[email protected]>
>         This is not a specific cocoon issue, I believe. It probably
>         has to do
>         with Tomcat 5.5.27.
>         request.setCharacterEncoding simply does not work; it does not
>         change a
>         thing.
>         request.getCharacterEncoding returns nothing.
> 
> You have to call request.setCharacterEncoding() really early for it to
> have any impact.  Your best bet is to look at spring's
> CharacterEncodingFilter.  You can add that to your web.xml to get the
> character set defined very early on.
> 
> -Dom 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to