jQuery ajax乱码问题解决
<br />一、测试环境<br />jQuery:1.3.2<br />tomcat:5.5.17<br />二、测试方法<br />1.使用get方式<br />服务器端java代码:<br />String name = new String(request.getParameter("name").getBytes("iso8859-1"),"utf-8");<br />客户端js代码:<br />$.ajax({url: "2.jsp",type: "get",data: {name:"中文"},s
原创
2010-11-09 17:26:00 ·
924 阅读 ·
2 评论