[转][C#]字符转换

来自:https://www.cnblogs.com/huangcong/p/4381590.html

using System.Text.RegularExpressions;

decodedStr = Regex.Unescape(escapeUnicodeStr);
还可以使用 Json.net 转换:
str = JsonConvert.DeserializeObject<string>(tmp)

 

posted on 2020-03-28 14:54  z5337  阅读(127)  评论(0编辑  收藏  举报