Announcement Announcement Module
Collapse
No announcement yet.
UTF-8 encoding Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • UTF-8 encoding

    Hi all,

    I've a problem with UTF-8 encoding for accented characters.
    My configuration is

    web.xml
    Code:
    <filter>
    	<filter-name>characterEncodingFilter</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>
    applicationContext.xml
    Code:
    <beans:bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<beans:property name="basename" value="classpath:localization/messages" />
    		<beans:property name="defaultEncoding" value="UTF-8"/>
    	</beans:bean>
    myJsp.jsp
    Code:
    <head>
    	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    ...
    </head>
    <body>
            <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    ...
    </body
    How Can I solve it?

    Thanks

  • #2
    I 've find a solution.

    In my web.xml there is HiddenHttpMethodFilter class in a wrong position

    Comment

    Working...
    X