This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?