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.
|