解决办法1:
要解决这个中文乱码问题,就必须给AJAX异步提交指定显 示的charset!
jQuery(form).ajaxSubmit({
url: "ajax.aspx?a=memberlogin",
type: "post",
dataType: "json",
contentType: "application/x-www-form-urlencoded; charset=utf-8", success: showLoginResponse
});
详细出处参考:
http://www.jb51.net/article/24097.htm解决办法2:
java代码中,将response.setCharacterEncoding("UTF-8")放在action方法的最前面。
详细出处参考:
http://bbs.csdn.net/topics/360098992?page=1