C# 编码解码

string test = "小飞侠";
test = HttpUtility.UrlEncode(test, Encoding.UTF8);//编码
test = HttpUtility.UrlDecode(test, Encoding.UTF8);//解码
原文地址:https://www.cnblogs.com/Transmuter/p/14120596.html