JSF - database character encoding

Posted by wheelie on Stack Overflow See other posts from Stack Overflow or by wheelie
Published on 2010-06-14T20:19:39Z Indexed on 2010/06/14 20:22 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

Hi there,

I have a Java Web application using GlassFish 3, JSF2.0 (facelets) and JPA (EclipseLink). The problem I'm facing, is that if I'm saving entities to the database with the update() method, String data loses integrity; '?' is shown instead of some characters.

The server, pages and database is/are configured to use UTF-8.

After I post form data, the next page shows the data correctly. Furthermore it "seems" in debug that the String property of the current entity stores the correct value too. Dunno if NetBeans debug can be trusted; might be that it decodes correctly, however it's incorrect.

Any help would be appreciated, thanks in advance! Daniel

© Stack Overflow or respective owner

Related posts about jsf

Related posts about jpa