Skip to main content

Posts

Showing posts from August, 2017

Unicode Problem solving: Spring, Hibernate, MySQL and Tomcat

Spring, Hibernate, MySQL and Tomcat Unicode Problem solving 1.     Spring: In web.xml need to configure Unicode Encoding filter to accept Unicode in request and response.  This should be the first filter 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 >     ...