-->
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.  [ 2 posts ] 
Author Message
 Post subject: Usage of postgresql with hibernate and UTF8 encoding
PostPosted: Sun Jun 18, 2006 4:02 am 
Newbie

Joined: Sun Jun 18, 2006 3:57 am
Posts: 1
Good day all,
I am using postgresql 8.1 with UTF-8 database, with tables that have texts in hebrew and other non-latin languages.
I wrote an HBM file that maps a POJO to one of the classes (I'm using hibernate 3.0 with J2SE 5.0)
The POJO has fields of "username" and "password"

I would like to obtain a "username" from a record that is stored at the table. I succeeded to obtain a username that was written in english.
How do I obtain a username that is written in non-latin language and save it to a local file on my harddisk?
How can i convert such a username to an array of bytes?

Thanks

Avi Nir


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 9:17 pm 
Newbie

Joined: Thu Aug 05, 2004 1:54 am
Posts: 10
Location: Novosibirsk, Russia
Well, what's the problem? We're using PostgreSQL 8.0 database in unicode (for Russian) with Hibernate and it just works.


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