-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate, PostgreSQL, Unicode/UTF-8
PostPosted: Tue Oct 28, 2003 8:55 am 
Newbie

Joined: Thu Oct 23, 2003 11:08 am
Posts: 10
hi

I am actually not sure if this is a *my* problem or one of
Hibernate or PostgreSQL...but maybe someone experienced
can help me out ;-).

I created a PostgreSQL database (encoding UNICODE),
insert java string with (great) Hibernate and read the string
afterward a give them out on a HTML page with UTF-8
encoding. Things work quite fine, I can even insert arabic
or chinese messages and display them...

The only thing what doesn't work and I do not understand
is if I insert for example "German-Umlauts" (


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2003 3:31 pm 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
The web app I'm working on currently is all done in UTF-8. I just checked the umlaut characters and they work fine. My guess is that your probably is related to the fact that these characters are part of an extended ASCII character set but that's just conjecture.

What phases are your data going through exactly between input and output? ie. is this a web app, swing, etc? What steps could be messing it up?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2003 4:08 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Try to experiment with driver versions, looks like custom converters are used by jdbc driver, it can be broken too.


Top
 Profile  
 
 Post subject: My solution...
PostPosted: Wed Oct 29, 2003 5:28 pm 
Newbie

Joined: Thu Oct 23, 2003 11:08 am
Posts: 10
Just for information:

I could finally manage by changing the default encoding of the
JVM (java -Dfile.encoding=UTF-8 ....)

PD:
Specifying the encoding in the jdbc url (..JdbcDriver?charSet=...)
didn't work out unfortunately...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.