Hi,
I am facing a very common issue and though did visit many forums and websites on this issue , none is helping me. I have a table which has data in Chinese characters. My Object model is very simple and I do not use Annotations. All my configurations are in cfg.xml file and hbm.xml files.
When I try to retrieve the object the returned value of some of the fields where Chinese characters are present appear as ??????. I have added all possible set of UTF configurations to Hibernate, without any avail
<prop key="hibernate.connnection.charSet">UTF-8</prop> <prop key="hibernate.connection.useUnicode">true</prop> <prop key="hibernate.connection.characterEncoding">UTF-8</prop>
Any suggestions would be very helpful,
Thanks D.
|