jquery url传输中文乱码问题解决

 前台

 function viewCart(){

                window.open("MyCart.aspx?id="+$('#hid').val()+"&name="+encodeURIComponent($('#hname').val())+"&price="+$('#hprice').val()+"","cssrain","left=60px,top=100px,width=800px,height=700px");

}

后台

 string  strProductName2 = Request.QueryString["name"] == null ? "" : Request.QueryString["name"].ToString();

      strProductName = HttpUtility.UrlDecode(strProductName2, Encoding.GetEncoding("GB2312"));

原文地址:https://www.cnblogs.com/zzxap/p/2175579.html