Javascript和Ajax中文乱码解决方案
 

客户端JS:encodeURI(encodeURI($("#name").val()));


服务器java:

          String str = request.getParameter("name");
          str = java.net.URIDecode.decode(str,"UTF-8")