Ajax中文乱码问题

ie浏览器很痛苦,常出现中文乱码问题。常用的解决方式有两种

1 将服务器charset改为GB2312

2 修改Ajax中activex请求时的代码

var activeName = ["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0",
                        "MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0",
                        "MSXML2.XMLHTTP","Microsoft.XMLHTTP"];

改为
var activeName = [                     "MSXML2.XMLHTTP","Microsoft.XMLHTTP"];



你可能感兴趣的:(web前端,ajax,浏览器,服务器,ie)