Facelets charset problem

Posted by Vladimir on Stack Overflow See other posts from Stack Overflow or by Vladimir
Published on 2010-06-09T10:54:14Z Indexed on 2010/06/09 11:22 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

Hi!

In my earlier post there was a problem with JSF charset handling, but also the other part of the problem was MySQL connection parameters for inserting data into db. The problem was solved.

But, I migrated the same application from JSP to facelets and the same problem happened again. Characters from input fields are replaced when inserting to database (c is replaced with Ä), but data inserted into db from sql scripts with proper charset are displayed correctly. I'm still using registered filter and page templates are used with head meta tag as following:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">

If I insert into h:form tag the following attribute:

acceptcharset="iso-8859-2"

I get correct characters in Firefox, but not in IE7.

Is there anything else I should do to make it work?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about unicode

Related posts about jsf