2013年6月26日
摘要: 介绍\uxxxx这种格式是Unicode写法,表示一个字符,其中xxxx表示一个16进制数字,范围所0~65535. Unicode十六进制数只能包含数字0~9、大写字母A~F或者小写字母A~F。需要注意到是:Unicode的大小端问题,一般都是小端在前,例如 \u5c0f 表示汉语中的 '小'字,转换成10进制就是9215,所以在byte数组中应该是1592.汉字转Unicode private string Unicode2Chinese(string strUnicode){ string[] splitString = new string[1]; splitStrin 阅读全文
posted @ 2013-06-26 21:18 Frank.Fan 阅读(37142) 评论(5) 推荐(1) 编辑