you should use this
<?xml version="1.0" encoding="ISO-8859-1"?>
in the first line of your xhtml.
Thanks for Your reply.
Using ISO-8859-1 encoding does not really solve the problem. First of all ISO-8859-1 does not support all Hungarian characters (like ő, ű). If I use ISO-8859-1 and try to input these characters to a field, after the postback I still get back a badly encoded character. What is more if I save my xhtml file with UTF-8 encoding while puting the mentioned tag in the beginning, the whole generated html file will be full with badly encoded characters. I could of course save it as ISO-8859-1, but as I said before this character set just does not support all the Hungarian characters.
For these reasons I surely would like to use UTF-8 encoding. Using UTF-8 never caused me any trouble with JSF or with Richfaces, so I hoped there might be a solution with Seams too.
You must configure your server to encode UTF-8 too.
What database server do you use? You should configure db server UTF-8 too. Hungarian encoding is ISO-8859-2 it would works. You have to use same encoding everywhere.
Thanks a lot!
Changing the server encoding solved the problem.
I use Jboss, so I added URIEncoding="UTF-8" attribute to the connector configurations in server.xml and now everything seems OK. (My database encoding was already UTF-8).
Thank you very much for the solution !!!