C# 对字符进行UrlEncode/UrlDecode

1 string text= System.Web.HttpUtility.UrlEncode("heart", System.Text.Encoding.UTF8);    //UrlEncode编码
2 string data = System.Web.HttpUtility.UrlDecode(text, System.Text.Encoding.UTF8);     //UrlDecode解码
posted @ 2019-05-22 17:51  forack  阅读(16032)  评论(0编辑  收藏  举报