0

I have web application written in java spring 3, i have used filter

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

but when I get my json using ajax response. It shows '?????'. Is there anybody who have encountered similar issue. I have searched on internet but haven't got any solution.

techprat
  • 375
  • 7
  • 23

1 Answers1

1

If you are using mysql db on your back-end ,

Just set Collation as " utf8_general_ci " to save your arabic data, and try it again.

Devang Mistry
  • 595
  • 1
  • 10
  • 22