string str = System.Web.HttpUtility.UrlEncode("URL编码", System.Text.Encoding.Unicode); //编码 Console.WriteLine(str); string destr = System.Web.HttpUtility.UrlDecode(str, System.Text.Encoding.Unicode); //解码 Console.WriteLine(destr);
关键字词: