I am facing problem while retriving chinese characters from DB. Chinese characters in DB persisted properly but while retriving it it is showing '?'. Could you please help me out is there any way to retrive data properly with resultSet ?
The Problem is I am using HTML and the encoding is set in response as UTF-8 in servlet, still the combo box is showing me boxes instead of chinese characters. I found the root cause is while getting String from ResultSet, the String retrived is in different format I tried with following code and it is working fine
I find it hard to believe that this code is working correctly for non-ISO-8859 characters. What it does is to convert a string to ISO-8859-encoded bytes, and then convert it back to Unicode while telling the JVM to assume that the bytes are UTF-8 encoded (when they're actually ISO-8859-encoded).
Also, does the client machine have a font installed that contains those characters?