[MRM-1243] Encoding issues with Archiva UI: add Spring CharacterEncodingFilter

submitted by Julien Henry
o add filter to force utf-8 encoding


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@810457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2009-09-02 11:25:55 +00:00
parent 6ad5da6f8d
commit e9da0e496b
1 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,24 @@
<filter-name>webwork</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</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>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- this must be before the sitemesh filter -->
<filter-mapping>