0
양식이 포함 된 UTF-8 인코딩을 사용하여 HTML 페이지를 보내면 브라우저가 POST 요청 헤더 매개 변수에 인코딩을 지정하지 않았습니까?POST 요청 헤더에 누락 된 인코딩이 있습니다.
현재 Firefox 18 및 Internet Explorer 9 (아래 참조)로 테스트했습니다.
Why does POST not honor charset, but an AJAX request does? tomcat 6에 대한 응답을 기반으로 HTML 페이지 인코딩을 설정하면 '응답 인코딩을 UTF-8로 설정하고 응답 헤더를 UTF-8로 설정합니다'.
내 테스트에서 응답 헤더는 양식 값이 UTF-8로 인코딩되었음을 지정하지 않았습니다.
이 값이 지정되어 있습니까?
Request: POST /demo/form.html HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Referer: http://127.0.0.1:8080/demo/form.html Accept-Language: de User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0) Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate Host: 127.0.0.1:8080 Content-Length: 29 Connection: Keep-Alive Cache-Control: no-cache
이 도움이 될 수 있습니다. http://stackoverflow.com/questions/2418944/how-to-force-browser-to-set-charset-in-content-type-http-header – Venu