4 Replies Latest reply on Jul 30, 2009 11:06 AM by Julien Kronegg

    encoding Problem with german special characters ... again

    Nico Wollenzin Newbie


      I encountered a problem with german special chars like ä,ö,ß.. in a freshly generated seam-gen project.

      All Characteres are displayed in the right way, but when I submit a form, all special chars get destroyed to a sort of foreign 'A' with funny symbols above.
      With tcpdump I found out, the the browser is encoding the german 'ß' to '%C3%9F' after submitting the form which seems to be okay. (wikipedia aggrees :-) )
      The destroyed char can be found both in the Bean while debugging it and in the database (PostgreSQL - UTF-8 encoding) after persisting it.

      'nothing new', I thought and searched through a bunch of Forums an mailing lists.
      After all the changes below the Problem remains.

      Here the changes I have made:


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

      to components.xml. Changed *.xhtml to *.seam


      useBodyEncodingForURI="true"  URIEncoding="UTF-8"

      to server.xml. Played with some orderings, but no change.

      I also tried out another Seam Version and an older Jboss.

      I have added

      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

      to all my xhtml pages.

      Is there something that I could have forgotten?

      thank you all


      Project Versions:

      • Seam 2.0.1.GA and 2.0.2.CR1 with facelets

      • Jboss 4.2.2.GA and 4.2.1.GA

      • Richfaces 3.2.0

      • Browsers - FF 2.0.* and IE 7 on Vista and XP

      • JDK 1.5.0