Hello All,
If I have a
jsp file which has contentType="text/html;charset=UTF-8", and I would like to type some chinese words in the text box and submit to server and then save to db (varchar2). I try to use
new
String(mytext.getBytes(request.getCharacterEncoding()), "UTF-8"); or
new String(mytext.getBytes(request.getCharacterEncoding()), "gb2312");
but the result still "???".
Could anyone know how to solve it?
Thanks in advance!
Jack