struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Fattahi <afatt...@yahoo.com>
Subject json validation with utf-8 error messages
Date Mon, 15 Jul 2013 08:35:22 GMT
Hi,

The characters of error messages with json validation and a utf-8 error message is not displayed
correctly.
I added 
    <filter>
        <filter-name>SetEncoding</filter-name>
        <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
    </filter>

and
    <filter-mapping>
        <filter-name>SetEncoding</filter-name>
        <url-pattern>*</url-pattern>
    </filter-mapping>

But it did not fix the issue.

Any comments?!

 
~Regards,
~~Alireza Fattahi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message