-->
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.  [ 5 posts ] 
Author Message
 Post subject: I18N problem in Query
PostPosted: Wed May 04, 2005 10:51 pm 
Newbie

Joined: Wed May 04, 2005 5:38 pm
Posts: 15
Hello,

Please help me! There is an I18N problem in the Query (HQL). It can't parse my hungarian character 0xF5. You can see it at this: http://www.webfocus.hu/hibernateProblem/wrongchars.jpg

When you see the links please use ISO-8859-2 charset!

Thank you very much


Hibernate version: 3.0.2

Mapping documents:

http://www.webfocus.hu/hibernateProblem/mappingdoc.txt

Code between sessionFactory.openSession() and session.close():

http://www.webfocus.hu/hibernateProblem/openSession.txt

Full stack trace of any exception that occurs:

http://www.webfocus.hu/hibernateProblem/exception.txt

Name and version of the database you are using: Mysql 3.0.14

The generated SQL (show_sql=true):

n/a

Debug level Hibernate log excerpt:

This is very big (2.1MB): http://www.webfocus.hu/hibernateProblem/debuglevel.txt


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 6:14 am 
Regular
Regular

Joined: Tue Nov 23, 2004 7:42 am
Posts: 82
Location: London, England
Switch to UTF-8.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 9:20 am 
Newbie

Joined: Wed May 04, 2005 5:38 pm
Posts: 15
Hello,

I have a Netbeans 4.1 RC2 project with many source files. When I use UTF-8 encoding do I have to convert all files? Is it possible (in the future) that the Hibernate 3 (like Hibernate 2) uses a the system encoding settings and uses eg.: ISO-8859-2 or "central european windows (1250?)" encoding, so I don't have to convert files :(

thx


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 9:25 am 
Regular
Regular

Joined: Tue Nov 23, 2004 7:42 am
Posts: 82
Location: London, England
It's not really the files you have to convert, it's the database. You also need to ensure that text you're adding to the database is UTF-8 encoded. Ensure you're using a Connector/J 3.0 series driver as (I reckon) 3.1 is broken. Ensure your servlet architecture is rendering pages as UTF-8.

Changing the files will help but this is a starting point.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 2:31 pm 
Newbie

Joined: Wed May 04, 2005 5:38 pm
Posts: 15
The problem isn't with my data in the database. My difficult is with the entity object accessors. There are some accent(non ASCII chars) in my getter and setter methods, if there aren't the problem isn't exists, only there are.

10^6*Thx


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