编码
System.Web.HttpUtility.UrlEncode("中国", System.Text.Encoding.GetEncoding("GB2312"))
解码
System.Web.HttpUtility.UrlDecode("%d6%d0%b9%fa", System.Text.Encoding.GetEncoding("GB2312"))
编码
System.Web.HttpUtility.UrlEncode("中国", System.Text.Encoding.GetEncoding("GB2312"))
解码
System.Web.HttpUtility.UrlDecode("%d6%d0%b9%fa", System.Text.Encoding.GetEncoding("GB2312"))
转载于:https://www.cnblogs.com/lihongchen/p/4026201.html