title: UTF-8 encoding in Spring MVC, problem with FORMs
body: <p>I have this in web.xml</p>
  
  <pre><code>   &lt;filter&gt;
          &lt;filter-name&gt;encoding-filter&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;encoding-filter&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>and at the top of file.jsp I have this:</p>
  
  <pre><code>&lt;%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %&gt;
  </code></pre>
  
  <p>in <code>&lt;head&gt;</code> this:</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  </code></pre>
  
  <p>and characters other than latin-1 set from FORM with method POST are still not correct.</p>