Page 1 of 1

Encoding problems

Posted: Sun Dec 01, 2013 1:08 pm
by listaka
Hello,

I'm having encoding problems when i try to edit a product through the admin interface.

The problem occurs when I put special characters such as "é", "è", ... Here is an example :

Image

I've already checked my database encoding format which is the standard UTF-8.

Any idea ?

Thank you !

Re: Encoding problems

Posted: Mon Dec 02, 2013 1:51 am
by bpolster
We made a change recently to the web.xml for the sample application that might fix this for you.

Try adding the following to your admin web.xml before the springSecurityFilterChain.

Code: Select all

   
    <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>

Re: Encoding problems

Posted: Mon Dec 02, 2013 4:42 pm
by listaka
Hello Brian,

Thanks for the reply ! It worked like a charm.

Have a nice day