-
1. Re: encoding problem
diegocoronel Jul 22, 2009 11:59 PM (in response to nongentesimus)you should use this
<?xml version="1.0" encoding="ISO-8859-1"?>
in the first line of your xhtml.
-
2. Re: encoding problem
nongentesimus Jul 23, 2009 12:51 AM (in response to nongentesimus)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.
Any idea?Thanks
Péter
-
3. Re: encoding problem
gardellajuan Jul 23, 2009 1:00 AM (in response to nongentesimus)You must configure your server to encode UTF-8 too.
-
4. Re: encoding problem
zogehu Jul 23, 2009 9:08 AM (in response to nongentesimus)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.
-
5. Re: encoding problem
nongentesimus Jul 23, 2009 9:53 AM (in response to nongentesimus)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).
Péter -
6. Re: encoding problem
afibarra.armando.flores.biovetsa.com.mx Feb 17, 2010 10:53 PM (in response to nongentesimus)Thank you very much for the solution !!!