public static string GetUnicodeStr(string ust)
{
Regex r = new Regex(@"(?i)\\[uU]([0-9a-f]{4})");
return r.Replace(ust, delegate(Match m) { return ((char)Convert.ToInt32(m.Groups[1].Value, 16)).ToString(); });
}
“\u”Unicode字符转为中文字
最新推荐文章于 2023-12-26 02:09:46 发布