需要引入:System.Text.RegularExpressions
或者直接使用。如下:
String shtml = @"\u58a8\u96ea\u98d8\u5f71";
Console.WriteLine("原文:"+shtml);
Console.WriteLine("解码:"+Regex.Unescape(shtml));
Console.WriteLine("解码:"+System.Text.RegularExpressions.Regex.Unescape(shtml));
评论区