【问题标题】:How to decoding UTF8 encoded value in C#? [duplicate]如何在 C# 中解码 UTF8 编码值? [复制]
【发布时间】:2016-04-08 14:34:41
【问题描述】:

以 UTF8 编码值 Wuce%C3%B1o 存储的 Cookie 值。实际值为Wuceño。 c#中如何将decode中的编码值转换为Wuceño

【问题讨论】:

    标签: c# utf-8


    【解决方案1】:

    试试WebUtility.UrlDecode:

        string s = WebUtility.UrlDecode("Wuce%C3%B1o");
    

    HttpUtility.UrlDecode:

        string s = HttpUtility.UrlDecode("Wuce%C3%B1o");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-13
      • 2012-07-26
      • 1970-01-01
      相关资源
      最近更新 更多