1.转码
中文为 “你好”
var ProjectName = encodeURI(encodeURI("你好"));,如下图所示
跳转页面 window.location.href="/ProjectManagement/ProjectManagement/ViewProjectsDetails?ProjectName=" + ProjectName;
2.解码
获取ProjectName
var ProjectName = $.request("ProjectName"));
var aa = decodeURI(ProjectName );
console.log(aa); //你好