将gb2312编码的字符串转换为其对应的汉字(C#)

2024-12-21 15:43:25
推荐回答(1个)
回答1:

导入System.Web.Dll

string result = System.Web.HttpUtility.UrlDecode("%B0%D9%B6%C8%2F", System.Text.Encoding.GetEncoding("GB2312"));