jquery ajax 乱码

阅读更多
function v(){   
    var jqueryobj = $("#userName");
    var userName = encodeURI(jqueryobj.val());
    $.get("AJAXServer.do?name="+encodeURI(userName),null,callback);
}

 

<%@ page import="java.net.URLDecoder" %>
<%
request.setCharacterEncoding("UTF-8");
	String searchDwType = request.getParameter("searchDwType");
searchDwType=URLDecoder.decode(searchDwType, "UTF-8");

%>

username =new String(username.getBytes("ISO8859_1"),"utf-8");
 

 RIA知识库

 flex

 RIA

 

你可能感兴趣的:(Ajax,jQuery,Java,.net)