Request.QueryString中
对特殊字符的编码与解码
对传递的特殊字符串进行
HttpUtility.UrlEncode("*&%¥"); 或 Server.UrlEncode("+-");
编码
对接收的特殊字符串进行
HttpUtility.HtmlDecode(""); 或 Server.HtmlDecode("");
解码
Request.QueryString中
对特殊字符的编码与解码
对传递的特殊字符串进行
HttpUtility.UrlEncode("*&%¥"); 或 Server.UrlEncode("+-");
编码
对接收的特殊字符串进行
HttpUtility.HtmlDecode(""); 或 Server.HtmlDecode("");
解码