-->
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.  [ 3 posts ] 
Author Message
 Post subject: SOS -encoding problem
PostPosted: Wed Oct 22, 2003 7:00 am 
Newbie

Joined: Wed Oct 15, 2003 8:39 am
Posts: 2
with hibernate, I save object with encoding-'GB2312'. but when I loaded it, Its encoding is "iso88591".

oh.............three days.........









//
http://www.erproad.org

_________________
life need some sugar

my website: http://www.erproad.org (zh_CN)


Top
 Profile  
 
 Post subject: Re: SOS -encoding problem
PostPosted: Wed Oct 22, 2003 7:58 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
weihello wrote:
with hibernate, I save object with encoding-'GB2312'. but when I loaded it, Its encoding is "iso88591".

It is a very popular problem, but it is not a hibernate problem. Try to configure driver.


Top
 Profile  
 
 Post subject: maybe this helps
PostPosted: Wed Oct 22, 2003 10:56 am 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
I use UTF-8 in all my projects. One of the steps to get there is configuring JDBC with a connection similar to this:

jdbc:postgresql://localhost/db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true


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

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.