0
我在smalltalk服務器中使用html/javascript。我已經在元標記中設置了utf-8字符集。但是意大利人的特殊字符顯示不正確。例如,á顯示爲¡ 我所提供的標頭值低於 響應頭:如何爲意大利語區域設置字符集?
Accept */*
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Content-Length 269
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Cookie VW-WTK-sessionkey=863807508382_ga=GA1.2.1395970228.1381994276
Host www.example.it
Referer http://www.exapmle.it/hello.html
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0
X-Requested-With XMLHttpRequest
請求報頭:
Accept application/json, text/javascript, */*; q=0.01
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Content-Length 85
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Host www.example.it
Referer http://www.example.it/index.html
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0
X-Requested-With XMLHttpRequest
和柱是
Parameters application/x-www-form-urlencoded
city á à è é ì à ò ó ù ú
name á à è é ì à ò ó ù ú
謝謝你的回答。發生這種情況是因爲文件的編碼是在iso-8859-1&utf-8中,而它被稱爲提到utf-8。所以,瀏覽器在windows 1259中解碼。 – SRTECH