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"));

 

posted on 2009-11-14 18:33  风乔  阅读(577)  评论(0编辑  收藏  举报

导航