2008年3月6日

C#中一些字符串操作的常用用法

摘要: //获得汉字的区位码 byte[] array = new byte[2]; array = System.Text.Encoding.Default.GetBytes("啊"); int i1 = (short)(array[0] - ''\0''); int i2 = (short)(array[1] - ''\0''); //unicode解码方式下的汉字码 array = ... 阅读全文

posted @ 2008-03-06 10:37 Junda.chen 阅读(120) 评论(0) 推荐(0) 编辑

导航