title: i18n with UTF-8 encoded properties files in JSF 2.0 application
body: <p>I am using jsf-ri 2.0.3 where Hebrew and Russian support is needed.
  The problem is that I see gibberish on the screen instead of the correct text.</p>
  
  <p>First of all I have defined bundles (*_locale.properties) for each language. The files is in UTF-8 encoding.
  Secondly, I've defined the default and supported locales in faces-config.xml</p>
  
  <pre><code>&lt;locale-config&gt;
      &lt;default-locale&gt;iw&lt;/default-locale&gt;
      &lt;supported-locale&gt;en&lt;/supported-locale&gt;
      &lt;supported-locale&gt;ru&lt;/supported-locale&gt;
  &lt;/locale-config&gt;
  </code></pre>
  
  <p>Than I've added a custom filter that will set the response charcter encoding to UTF-8.</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;encodingFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.springframework.web.filter.CharacterEncodingFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;encoding&lt;/param-name&gt;
          &lt;param-value&gt;UTF-8&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;forceEncoding&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;encodingFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>And finally when I create a simple xhtml to debug the output I see a very strange results</p>
  
  <pre><code>&lt;f:loadBundle basename="i18n.frontend.homepage" var="msg"/&gt;
  &lt;strong&gt;i18n: &lt;/strong&gt;&lt;h:outputText value="#{msg.language}"/&gt;
  &lt;br/&gt;
  &lt;strong&gt;Locale: &lt;/strong&gt;
  &lt;h:outputText value="#{facesContext.externalContext.response.locale}"/&gt;
  &lt;br/&gt;
  &lt;strong&gt;Encoding: &lt;/strong&gt;
  &lt;h:outputText value="#{facesContext.externalContext.response.characterEncoding}"/&gt;
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>i18n: ×¢××¨××ª
  Locale: en_US
  Encoding: UTF-8 
  </code></pre>
  
  <p>What is wrong with my configuration?</p>