title: Spring form and controller UTF-8 bad encoding
body: <p>I have a problem with my UTF-8 encoding. My webapp uses french words that are correctly displayed in my jsp, but not in my controller after a POST.
  For example, in my jsp I have:</p>
  
  <blockquote>
    <p>Prénom de mon père</p>
  </blockquote>
  
  <p>and when I post the form, the controller gets:</p>
  
  <blockquote>
    <p>PrÃ©nom de mon pÃ¨re</p>
  </blockquote>
  
  <p>The characterEncodingFilter is the first filter in the file as described in <a href="https://stackoverflow.com/questions/5141403/utf-8-encoding-in-spring-mvc-problem-with-forms">this post</a></p>
  
  <p>Here is my jsp:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%&gt;
  &lt;!doctype html&gt;
  &lt;%@ taglib uri="http://tiles.apache.org/tags-tiles"         prefix="tiles" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core"          prefix="c" %&gt;
  &lt;%@ taglib uri="http://www.springframework.org/tags/form"   prefix="form" %&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;
      &lt;meta http-equiv="content-language" content="fr"&gt;
      ...
      &lt;/head&gt;
  
      &lt;form:form class="form-horizontal" modelAttribute="AlimentationForm"
      action="${actionUrl}" method="POST"&gt;
      ...
           &lt;form:input path="questions" class='input-xlarge' type='text' value='Prénom de mon père'/&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>My web.xml:</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;characterEncodingFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.springframework.web.filter.CharacterEncodingFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;encoding&lt;/param-name&gt;
          &lt;param-value&gt;UTF-8&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;forceEncoding&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;characterEncodingFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/web/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>And my application-config.xml</p>
  
  <pre><code>&lt;beans:bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
      &lt;beans:property name="basename"&gt;
          &lt;beans:value&gt;classpath:messages&lt;/beans:value&gt;
      &lt;/beans:property&gt;
      &lt;beans:property name="defaultEncoding" value="UTF-8" /&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>I don't know what's wrong in my app or my configuration, have you got any idea?</p>
  
  <p>Thank in advance.</p>
  
  <p>EDIT: I'm using HDIV framework</p>