mirror of https://github.com/apache/archiva.git
[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:
parent
6ad5da6f8d
commit
e9da0e496b
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue