-->
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: How to display the right Charset in comments???
PostPosted: Thu Sep 27, 2007 12:41 am 
Newbie

Joined: Fri Aug 27, 2004 1:43 pm
Posts: 3
I used the hibernatetools to generate column comment,the comment could generated,but the Charset couldn't understand。

Databse : oracle9i
Language:chinese

e.g: the column comment in database is :部门ID

in the hbm.xml:
Code:
        <many-to-one name="sysDept" class="com.zytech.sys.domain.SysDept" fetch="select">
            <column name="DEPT_ID" precision="10" scale="0">
                <comment>& #178;& #191;& #195;& #197;ID</comment>
            </column>
        </many-to-one>

[/code]

the word "部门ID" become : & #178;& #191;& #195;& #197;ID
(& #=&#)


how to resolved this problem?????


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 5:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we just dump the UTF version afaik.

are those comments correct when viewed as html encodings ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 10:23 am 
Newbie

Joined: Fri Aug 27, 2004 1:43 pm
Posts: 3
thx MAX!

Code:
the string : & #178;& #191;& #195;& #197;ID ("& #" replace with "&#" ) view in ie is : ²¿ÃÅID

this is not corrent!

the corrent comment is :部门ID




How could I get the corrent comment??


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 10:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
this is what we get from the driver that we put in there literally...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 8:13 pm 
Newbie

Joined: Fri Aug 27, 2004 1:43 pm
Posts: 3
thx Max!

Ok,and how could I get the corrent comment?I want get the comment is "部门ID", not that.


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.