How to pass Unicode characters as JSP/Servlet request.getParameter?

后端 未结 4 1278
情话喂你
情话喂你 2020-11-22 04:01

After a lot of trial and error I still can\'t figure out the problem. The JSP, servlet, and database are all set to accept UTF-8 encoding, but even still whenever I use requ

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 04:32

    The Tomcat FAQ covers this topic pretty well. Particularly: http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q8 and http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q4

    The test JSP given in the FAQ is essentially the one I used when going through Tomcat years ago fixing various encoding issues.

提交回复
热议问题