编码

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

 

posted on 2014-10-15 13:53  随心所意  阅读(1056)  评论(0编辑  收藏  举报