jehn

2011年9月26日 #

字符串和二进制数组转换、将HTML文件显示为页面的一部分、UTF8和GB2312之间的转换

摘要: 1.字符串转二进制数组string content="这是做个测试!";System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding();byte[] byteArr = converter.GetBytes(content);2.二进制数组转为字符串System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding();string spcontent = converter.GetString(byteArr ); 阅读全文

posted @ 2011-09-26 15:05 jehn 阅读(254) 评论(0) 推荐(0) 编辑

导航