We developed a web application it should support both the languages English and Chinese. it is working fine for English. My database support utf-8 encoding. so when i insert chinese data it is inserting successfully.
For this i used
now i am facing problem while retrieving data from the database. it is giving some symbols...
so when i compare my database value and the response value. it is going wrong...
to avoid that i use String.getBytes("") method.
it is working fine. but is there any way to do directly with out using this method getbytes().
please can any one suggest me on this?
hi elOpalo ,
i am using resource bundle for storing fixed Strings.
now i need to compare this fixed string with the Database value. while i am comparing these two are in different formats. i set page encoding to utf-8 at the same time i used requse and response objects to utf-8. but i am not understanding y it converts to different encodings.
can u expalin what is happening der?
Thank you elOpalo.