////// 将Unicon字符串转成汉字String /// /// Unicon字符串 ///汉字字符串 internal static string UniconToString(string str) { string outStr = ""; if (!string.Empty.Equals(str)) { MatchCollection mc = Regex.Matches(str, @"\\u([\w]{2})([\w]{2})", RegexOptions.Compiled | RegexOptions.IgnoreCase); byte[] bts = new byte[2]; foreach (Match m in mc) { bts[0] = (byte)int.Parse(m.Groups[2].Value, System.Globalization.NumberStyles.HexNumber); bts[1] = (byte)int.Parse(m.Groups[1].Value, System.Globalization.NumberStyles.HexNumber); outStr += Encoding.Unicode.GetString(bts); } } return outStr; }