title: How to set JSF message encoding to UTF-8?
body: <p>I have the following code for some user input validation</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;h:inputText value="#{user.input}"&gt;
          &lt;f:validator validatorId="validator.InputValidator" /&gt;
      &lt;/h:inputText&gt;
      &lt;h:commandButton action="someaction" value="submit"&gt;
      &lt;/h:commandButton&gt;
      &lt;h:messages layout="table"&gt;&lt;/h:messages&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>It works fine, but I need to show some UTF-8 message if user input is not valid,<br>
  how can I do this?</p>