Hema Nandhini wrote:Hi All,
I have had good solutions for my problems here. I hope to get one for the problem i am facing now.
I have to store japanese data in postgres database. Mine is a web application. I get the values using request.getParameterMap(). When we pass japanese character in request, the value that is retrieved has some junk characters [like è£?ç½®ã?®ã??ã??ã?®è£?ç½®]. I am not sure how to convert this into a proper japanese character to store in database. I searched on net and tried to do something using the below code. But i am getting the output like this
�?置�?��??�??�?��?置
Can someone help me to do this??? Thanks in advance...
Strings in
Java are UNICODE encoded as UTF-16 always
always ALWAYS. There is no such thing as a UTF-8
String and
you should not need to do any conversion at all so your method is pointless. Your
JDBC driver should perform any character encoding required.