111,126
社区成员
发帖
与我相关
我的任务
分享
string strChinese = string.Empty;
if (!string.IsNullOrEmpty(strUnicode))//判断是否为空值
{
//使用循环来取值,转换字符
for (int i = 0; i < strUnicode.Length; i += 4)
{
string str = string.Empty;
str = strUnicode.Substring(i, 4);
//转换成中文
strChinese += (char)int.Parse(str, System.Globalization.NumberStyles.HexNumber);
}
}