cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Comment added to How to configure consistent encoding in Cocoon
Date Tue, 03 Feb 2009 20:52:38 GMT
A comment has been created.

http://cocoon.zones.apache.org/daisy/documentation/1366.html

Document ID: 1366
Name: How to configure consistent encoding in Cocoon
Branch: main
Language: default

Created by: Alexander Daniel
Created on: 12/8/08 11:34:37 AM
Visibility: public

Instead of using your own SetCharacterEncodingFilter you can use the one provided by Spring:
<filter>
    <filter-name>SetCharacterEncoding</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>
</filter>

<filter-mapping>
    <filter-name>SetCharacterEncoding</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

found this info at http://cocoon.markmail.org/search/?q=org.springframework.web.filter.CharacterEncodingFilter#query:org.springframework.web.filter.CharacterEncodingFilter+page:1+mid:q5cgg44f7mpvjnku+state:results

Mime
View raw message