These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Oracle UTF-8 Issue
PostPosted: Tue Sep 27, 2011 9:54 pm 
Regular
Regular

Joined: Tue May 17, 2011 1:45 am
Posts: 52
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.