Hi Everyone,
I am using MySQL + Hibernate for an application. I am facing an issue in making the application I18N.
I have created a table which has all column types as UTF8 and in the hibernate.cfg.xml, I have
<property name="hibernate.connection.url">jdbc:mysql://localhost/mydb?useUnicode=true&characterEncoding=UTF-8</property>
When I use normal hibernate to manage this POJO, I am able to save and read UTF8 values. But moment I use Hibernate Shards to manage this POJO, I am not able to write ( but I can read ) UTF8 Strings ( e.g: saving chinese strings results in ???? in db ).
-> Both hibernate.cfg.xml ( normal and sharded case ) has the above connection url.
Could someone help me understand what might be going wrong ?
Thanks,
Rakesh
|