-->
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.  [ 1 post ] 
Author Message
 Post subject: How to fix wrong character encoding reported by the database
PostPosted: Mon Mar 31, 2014 4:02 am 
Newbie

Joined: Mon Mar 31, 2014 3:30 am
Posts: 1
Hello all,
I'm trying to do demo project on Grails with our database (if it matters, Oracle RDB what is not the Oracle' Oracle). Database reports character encoding DEC_MCS which is the same as latin1, but actually contains data in another (KOI8-R, if it matters) encoding. So in result data are being converted to unicode in wrong way. Changing encoding in the database is not an option as it'll require whole database rebuild. JDBC driver supplied does not have any option to specify character encoding. I'm thinking about changing encoding somewhere after JDBC driver. The obvious point seems to be Dialect class, but I did not found there any appropriate method to infiltrate in. Could anybody point me to the right direction? The next stop is overriding some (which?) JDBC methods, which I wouldn't like to dive into, as this is my first steps in Java world.
Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.