dimanche 15 mars 2015

e inserting Chinese characters using hibernate on Chinese OS

We are using Spring (MVC and security) with hibernate for a web application development. The DB is oracle 11g. Encoding is UTF-8


We need to insert Chinese characters in DB. In our test environment this works. But in the QA environment it does not.


We are using CharacterEncodingFilter from spring in web.xml


The hibernate properties also cover hibernate.connection.CharSet, hibernate.connection.characterEncoding, useUnicode and defaultNChar


The difference we guess is because of the difference between OS of DB. In development the OS is en_US and in QA where it does not work, it is zh_CN. Should it matter for hibernate? Are there any properties to handle this?


Could there be any other areas we should look into?


Appreciate your help.


Amit


Aucun commentaire:

Enregistrer un commentaire