title: Set request character encoding of JSF input submitted values to UTF-8
body: <p>I have the same problem as <a href="https://stackoverflow.com/questions/9682476/character-encoding-jsf-input">Set request character encoding of JSF input submitted values to UTF-8 in GlassFish</a>, the submitted values arrive as <a href="http://en.wikipedia.org/wiki/Mojibake" rel="nofollow noreferrer">Mojibake</a>. However, the answer is targeted at GlassFish and I'm using JBoss AS 7.</p>
  
  <p>I've already specified the JDBC connection URL to use UTF-8:</p>
  
  <pre class="lang-none prettyprint-override"><code>jdbc:mysql://localhost:3306/mydb?useUnicode=yes&amp;characterEncoding=UTF-8
  </code></pre>
  
  <p>And in top of my JSF page:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  </code></pre>
  
  <p>How can I solve the same problem in JBoss AS 7? Or better, in a more generic way so that it works in all servers?</p>