After searching for 4 straight hours now, I have to give up and ask you guys. I have a very simple form which will take an input and on action, write it to my Oracle DB (which supports UTF-8).
<form action="test.jsp" method= GET accept-charset="UTF-8">
<label for= NAME >Name</label><input type="text" id="NAME" name="NAME"/>
<button type="submit">Submit</button>
</form>
All I want to do is the form to be able to accept characters such as é
or 请
and store them without changing the encoding.
我已经尝试过(合并)办法,例如制定办法。
request.setCharacterEncoding("UTF-8”;
或建造带有编码参数的新力量:
new String(request.getPara amount("NAME”).getBytes(),“UTF-8”
但它总是在数据库中结束,如:??
>>>/code>)
在这个问题上的任何帮助都将受到高度赞赏。