我看到这个问题。 在 Chrome/Safari,Ajax的回复被定为含有某些特殊特性的内容(即,Venent tilde i )没有得到正确解释。
这个问题非常突出:
I tried Firefox and IE and both works fine. Only Chrome is not displaying web page correctly. This is the URL: http://maixner.eu/#bio As you can see, some characters are wrong. This line: 2012 - Muzeum modernÃho umÄ›nÃ, Olomouc, Czech Republic Should be: 2012 - Muzeum moderního umění, Olomouc, Czech Republic
Dev details: 1) There is index.html page with javascript file, which loads data via AJAX (calls PHP file) 2) index.html file has content-type set to UTF-8 3) all files are UTF-8 encoded 4) javascript injects innerHTML using XMLHttpRequest class with responseText 5) php file has header( Content-type: text/html;charset=UTF-8" );
这里:
Have similar (or same) problem, but with spanish characters. I have set Apache to use UTF-8 I have set php header( Content-Type: text/html; charset=utf-8 ); I have set html I have set html But Chorme (only Chrome, FF, IE, etc work ok) shows this:
[Post headers] ... Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 ... [Some random post value from the form] ------WebKitFormBoundary0wi0NAscQiUkF2hJ Content-Disposition: form-data; name="s_name" OxÃgeno 100.4 FM Bogotá <-- characters are wrong! should read: Oxígeno 100.4 FM Bogotá