标签: c# utf-8
以UTF8编码的值Wuce%C3%B1o存储的Cookie值。实际价值为Wuceño。如何将解码中的编码值转换为c#中的Wuceño
Wuce%C3%B1o
Wuceño
答案 0 :(得分:0)
尝试WebUtility.UrlDecode:
WebUtility.UrlDecode
string s = WebUtility.UrlDecode("Wuce%C3%B1o");
或HttpUtility.UrlDecode:
HttpUtility.UrlDecode
string s = HttpUtility.UrlDecode("Wuce%C3%B1o");