title: Unable to set character encoding UTF-8 in .xhtml
body: <p>I have set the xhtml to UTF-8 and at ServletRequest. But it seems that it is still unable to detect the character encoding as UTF-8. I am working with Primefaces 3.5 with WebSphere 8.</p>
  
  <p>.xhtml</p>
  
  <pre><code>&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8" /&gt;
  </code></pre>
  
  <p>RedirectLogin </p>
  
  <pre><code>public class RedirectLogin implements Filter {
    public void doFilter(ServletRequest request, ServletResponse response,
          FilterChain chain) throws IOException, ServletException {
  
      if (request.getCharacterEncoding() == null) {
          request.setCharacterEncoding("UTF-8");
      }
      chain.doFilter(request, response);
  
    }
  }
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>    &lt;filter&gt;
          &lt;description&gt;Redirect unauthenticated session to login page.&lt;/description&gt;
          &lt;display-name&gt;RedirectLogin&lt;/display-name&gt;
          &lt;filter-name&gt;RedirectLogin&lt;/filter-name&gt;
          &lt;filter-class&gt;com.belsize.servlet.filter.RedirectLogin&lt;/filter-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;login_page&lt;/param-name&gt;
              &lt;param-value&gt;/faces/login.xhtml&lt;/param-value&gt;
          &lt;/init-param&gt;
  
  
      &lt;/filter&gt;
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;RedirectLogin&lt;/filter-name&gt;
          &lt;url-pattern&gt;/RedirectLogin&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;RedirectLogin&lt;/filter-name&gt;
          &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  </code></pre>