Hi there.
I have developed a CMS system that is supposed to support something about 8 european countries (i.e. languages) and it's going for the production very soon, but I have encountered a problem with storing russian text into mySQL database.
Actually the production system has a AS400 backend and since I don't have mainframe locally I used mySQL for testing purpose (so far that worked :) and I don't know what would be the behaviour in the real system if I try to use it with languages other then english (because the production system has a real database that I must not play with).
So, to be sure everything would be OK I tried rueeian localization and it turned out that the original russian text is stored as "??????????????" into the DB (mySQL).
I made sure that right before the insert/update the right text is stored into my business objects and after the update it is screwed...
I guess Hibernate has little (or nothing at all) to do with that, and I need to tell mySQL (and AS400 DB/2 on the production) what character set (encoding) to use..
Any help woul be appreciated.
P.S. Is there a way to see what values are exactly being inserted into DB, because with "showSQL=true" I can only see something like this in the log:
Hibernate: insert into GWER00 (ERSDESCR, ERLDESCR, ERNAME, EROFID, ERENTITYID, ERINDEX, ERTYPE, ERID) values (?, ?, ?, ?, ?, ?, 'TXT', ?)
|