解决方案:
url传参方:
var url="../www/PrintPDF.html?code="+code+"&Depot="+depot+""
url=encodeURI(url);
location.href=encodeURI(url);
url接收方:
获取参数Guid
var Guid = GetQueryString("Guid");
Guid=decodeURI(Guid)
2、
前端:escape()
服务端:HttpUtility.UrlDecode()