I have a simple servlet which persists user entered text into database. The input data is converted to UTF-8 before it is persisted. During retrieval, I am not able to decode the UTF-8 string back to user input text. I am using browser to display the UTF-8 data assuming that browser (<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
) will be able to interpret the UTF-8 value.
Any help how to save and retrieve UTF-8 data will be appreciated. I am using weblogic 8.1, Oracle 9i release 2 and hibernate to persist & retrive the data. The servlet reading the servlet parameter and converts the incoming string to UTF8 using getBytes.
example string: ������
UTF-8 data stored in database: ������������
thanks