-->
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: unicode support with datasource
PostPosted: Mon Dec 05, 2005 8:52 pm 
Newbie

Joined: Mon Dec 05, 2005 8:39 pm
Posts: 1
I use latest version of hibernate/mysql/tomcat/mysql connector and try to put some unicode characters to/from database through jsp pages.

I have configured hibernate to establish connection to database (without datasource, ie all connection parameters are defined in hibernate configuration file) and was able to successfully save/read unicode characters to/from database (even though it took me a very long time to put all bits in proper places).

But then I decided to use datasource (as advised :-) and moved connection settings to datasource definition in tomcat. Hibernate uses datasource configuration now. However, the interesting bit is that I can still read unicode characters from database but when I try to insert new entries they are not properly translated into unicode.

Yes, I did lots of testing and marking around and I have even put original database connection settings back to hibernate properties file. As soon as I start using datasource - saving unicode chacaters to database does not work.

any ideas?


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.