title: JSF form encoding
body: <p>How to make JSF use UTF-8 everywhere? It converts UTF-8 to Win-1252 in form data. Data gets from a bean, I don't use any filters and DB doesn't relate to this problem. JSF 2.2.4, Glassfish 4.0.0.</p>
  
  <p>Before sending:</p>
  
  <p><img src="https://i.stack.imgur.com/GczrJ.png" alt=""></p>
  
  <p>After (абвг became Ð°Ð±Ð²Ð³):</p>
  
  <p><img src="https://i.stack.imgur.com/2w0TX.png" alt=""></p>
  
  <p>Form data in Chrome:</p>
  
  <p><img src="https://i.stack.imgur.com/bVQGV.png" alt=""></p>
  
  <p>In JSF debug tool:</p>
  
  <p><img src="https://i.stack.imgur.com/3Zsek.png" alt=""></p>
  
  <p>Form code:</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;h:panelGrid columns="2"&gt;
          &lt;h:panelGroup&gt;#{m.nickname}&lt;/h:panelGroup&gt;
      &lt;h:panelGroup&gt;
          &lt;h:inputText value="#{register.nickname}" /&gt;
      &lt;/h:panelGroup&gt;
  
      &lt;h:panelGroup&gt;#{m.password}&lt;/h:panelGroup&gt;
      &lt;h:panelGroup&gt;&lt;h:inputSecret value="#{register.password}" /&gt;&lt;/h:panelGroup&gt;
  
      &lt;h:panelGroup&gt;#{m.shortName}&lt;/h:panelGroup&gt;
      &lt;h:panelGroup&gt;&lt;h:inputText value="#{register.shortName}" /&gt;&lt;/h:panelGroup&gt;
  
      &lt;h:panelGroup&gt;#{m.email}&lt;/h:panelGroup&gt;
      &lt;h:panelGroup&gt;&lt;h:inputText value="#{register.email}" /&gt;&lt;/h:panelGroup&gt;
  
      &lt;h:panelGroup /&gt;
      &lt;h:panelGroup&gt;&lt;h:commandButton action="#{register.register}" value="Регистрация" /&gt;&lt;/h:panelGroup&gt;
      &lt;/h:panelGrid&gt;
  &lt;/h:form&gt;
  </code></pre>