URl中文转ASCII

编码

System.Web.HttpUtility.UrlEncode("中国", System.Text.Encoding.GetEncoding("GB2312"))
View Code

解码

System.Web.HttpUtility.UrlDecode("%d6%d0%b9%fa", System.Text.Encoding.GetEncoding("GB2312"))
View Code
原文地址:https://www.cnblogs.com/lihongchen/p/4026201.html