摘要: protectedvoidPage_Load(objectsender,EventArgse){//在此处放置用户代码以初始化页面Encodinggb=Encoding.GetEncoding("gb2312");object[]bytes=CreateRegionCode(4);//调用函数产生4个随机中文汉字编码//根据汉字编码的字节数组解码出中文汉字stringstr1=gb.GetString((byte[])Convert.ChangeType(bytes[0],typeof(byte[])));stringstr2=gb.GetString((byte[])Co 阅读全文
posted @ 2011-09-15 08:31 大江 阅读(685) 评论(0) 推荐(0) 编辑