2 Replies Latest reply on Mar 16, 2008 2:37 PM by Goncalo Trincão

    UTF-8 encoding problem with page parameters.

    Goncalo Trincão Newbie

      Hi,


      I'm building a simple search page and a search results page.


      I have a text search box on the search page, and in the results page I want to have:



      1. the searchText as page parameter and;

      2. an <h:OutputText> also with the searchText.




      I have placed the <param .../> on the pages.xml.
      I have <?xml version=1.0 encoding=UTF-8?> facelets XTMLs
      On components.xml I have the line

      <web:character-encoding-filter encoding\="UTF-8" override-clien\t="true" url-pattern="*.seam" />



      When I write accented characters on the text box anc click search, the search results page shows strange characters on the searchText <h:OutputText>.


      I have been able to find out that these strange characters are decoded from the GET parameter as ISO8859-1 (instead of UTF-8).


      The whole problem disappears if I remove the page parameter.


      How can I tackle this problem?


      Environment:


      Seam 2.0.1 / Facelets / ICEfaces 1.6.2


      JDK 1.5.0.14


      JBoss 4.2.2


      Thank you all!
      Gonçalo