title: Passing UTF-8 string to f:viewParam in JSF
body: <p>I tried to pass UTF-8 String as <code>f:viewParam</code> value but value shown as garbage string, i added EncodingFilter in <code>web.xml</code> for setting UTF-8 to request and response as below</p>
  
  <pre><code>HttpServletResponse response = (HttpServletResponse) servletResponse;
  HttpServletRequest request = (HttpServletRequest) servletRequest;
  request.setCharacterEncoding("UTF-8");
  response.setCharacterEncoding("UTF-8");
  response.setContentType("text/html; charset=UTF-8");
  </code></pre>
  
  <p>and i defined facelet page in this style, but problem not resolved</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"&gt;
  &lt;f:metadata&gt;
      &lt;f:viewParam name="q" value="#{searchBean.query}"/&gt;
  &lt;/f:metadata&gt;
  .....
  &lt;/html&gt;
  </code></pre>
  
  <p>I test this with Myfaces 2.0.5 and Mojarra 2.0.5</p>