5 Replies Latest reply on Jun 15, 2007 4:54 AM by adrien.loyat

    Charset encoding problem in URL parameters

    rmemoria

      Hi all,

      I've created an inputText field that is passed as a URL parameter like that:

      In my page I have

      <h:inputText value="#{materialHome.nomeMaterial}" />
      <h:commandButton value="Search" action="/admin/materiais.xhtml" />


      And in pages.xml I have

      <page view-id="/admin/materiais.xhtml">
       <param name="id" value="#{materialHome.id}" />
       <param name="firstResult" value="#{materiais.firstResult}" />
       <param name="nome" value="#{materialHome.nomeMaterial}" />
      </page>

      It works fine, but if I use accents I get problems like this:

      If I insert the work balão
      After a post I get the inputText with the word balão

      I also tried to include in components.xml

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


      with several variations of the encoding param

      Any sugestion?

      Just for testing, if in pages.xml I remove the line
      <param name="nome" value="#{materialHome.nomeMaterial}" />
      the accents are properly preserved in the inputText.


      Thanks,
      Ricardo Memória