-->
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: Non-English characters in reverse engineered classes
PostPosted: Wed Mar 19, 2008 6:22 am 
Newbie

Joined: Wed Mar 19, 2008 5:26 am
Posts: 2
Eclipse version:
Version: 3.3.0 Build id: I20070621-1340

Hibernate Tools version:
3.2.0.cr1

Name and version of the database:
Oracle 10G

Operating System version:
Windows XP Professional

Regional options:
Turkish (means user.language=tr, file.encoding=Cp1254, user.country=TR)

My problem:
When I reverse engineer, fields of my classes contains Turkish characters, such as "ı" (if you cannot see it correctly, it is "ı"). What i want is "i" character, instead.

To override my computer's locale settings, I made following changes, but did not work:
- Hibernate Configuration/Common/Console Encoding/Other: ISO-8859-1
- Hibernate Code Generation/MyGen/Common/Console Encoding/Other: ISO-8859-1

I could not find a place to put "-Duser.language=en" and "-Dfile.encoding=Cp1252" JVM arguments.

What can/should I do?

Regards,

Ali Sadik Kumlali


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 1:46 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we run with the encoding your eclipse version is using.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 8:02 pm 
Newbie

Joined: Wed Mar 19, 2008 5:26 am
Posts: 2
Thanks Max. Do you mean that you do not have such problem with following settings?

- Your computer's locale is other than US/English (e.g. Turkish, user.language=tr, file.encoding=Cp1254, user.country=TR)
- Eclipse version: 3.3.0
- Hibernate Tools version: 3.2.0.cr1
- You do not pass "– nl en_US" to Eclipse as startup parameters
- Hibernate Configuration/Common/Console Encoding/Other: ISO-8859-1
- Hibernate Code Generation/MyGen/Common/Console Encoding/Other: ISO-8859-1

Regards,

Ali Sadik Kumlali


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 4:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I haven't tried it no - just let you know which locale we use in context of eclipse.

It seems to me some other conversion than just using .lowerCase() must be needed for non-english characters. Feel free to contribute that.

workaround would be for you to use reveng.xml or a custom ReverseEngineeringStrategy to handle the proper conversion.

_________________
Max
Don't forget to rate


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.