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解码
C# 对字符进行UrlEncode/UrlDecode
猜你喜欢
转载自www.cnblogs.com/wsxkit/p/10907530.html
今日推荐
周排行