日期:2014-05-16  浏览次数:20369 次

jquery ajax 乱码问题
情况是这样的,全站GB2312,
调用语句

var htmlobj=$.ajax({
url:'ajaxjq1.asp?showtype=' + showtype + '&cid=' + fds + '&sid=' + Math.random(),
async:false,
contentType: "pplication/x-www-form-urlencoded; charset=GB2312"
});
$("#dbuttonx").html(htmlobj.responseText);

兼容谷歌,不兼容IE,ajaxjq1.asp 里有从数据库里取出的中文信息,所以不能存为UTF-8格式,求大能解决
------解决方案--------------------
response.charset="gb2312"'增加这个响应头试试