;charset="utf-8"
Content-type が の場合は省略するのが通例application/x-www-form-urlencoded
ですか?
特に、accept-charset="utf-8"
フォーム タグで使用する場合、ヘッダーで utf-8 が使用されていることを示す何らかの兆候が期待されますが、何も表示されません。
これがChromeでの簡単なテストです。フォームページは次のとおりです。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>
<body>
<form method="POST" action="printenv.cgi" accept-charset="utf-8">
Your name:
<input name="name" type="text" size="30">
</form>
</body>
</html>
生成されたリクエストのヘッダーは次のとおりです。
POST /printenv.cgi HTTP/1.1
Host: ...:8000
Connection: keep-alive
Content-Length: 19
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Origin: http://...:8000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://...:8000/utf8-test.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
フォーム パラメータ値のエンコード方法を指定する規則は何ですか?