Why does POST not honor charset, but an AJAX request does? tomcat 6

后端 未结 5 804
攒了一身酷
攒了一身酷 2020-12-05 07:29

I have a tomcat based application that needs to submit a form capable of handling utf-8 characters. When submitted via ajax, the data is returned correctly from getParameter

5条回答
  •  一个人的身影
    2020-12-05 07:47

    Have you tried accept-charset="UTF-8"? As you said, the data should be encoded according to the encoding of the page itself; it seems strange that tomcat is ignoring that. What browser are you trying this out on?

提交回复
热议问题