Skip to content

Instantly share code, notes, and snippets.

@emoen
Last active December 28, 2015 02:29
Show Gist options
  • Save emoen/7428083 to your computer and use it in GitHub Desktop.
Save emoen/7428083 to your computer and use it in GitHub Desktop.
<filter>
<filter-name>encoding-filter</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>encoding-filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment