摘要: using System;using System.Text;namespace ConsoleApplication{ class ChineseCode { public static void Main() { //获取GB2312编码页(表) Encoding gb=Encoding.GetEncoding("gb2312"); //调用函数产生4个随机中文汉字编码 object[] bytes=CreateRegionCode(4); //根据汉字编码的字节数组解码出中文汉字 string str1=gb.GetString((byte[])Convert.Cha 阅读全文
posted @ 2012-05-28 22:06 刘振明 阅读(985) 评论(0) 推荐(0) 编辑