jquery ajax 乱码问题
var name='论坛';
前台:
$.ajax({
type: "post",
contentType:"application/x-www-form-urlencoded; charset=utf-8",
url: '',
async: false,
cache: false,
data: "&name="+name,
dataType: "html",
success: function (data) {
}
});
后台:
string name=request.querystring["name"];出现乱码?????
[解决办法]
var name=escape('论坛');