2016年5月13日
摘要: 引用命名空间:using System.Text; 代码: string str = "中"; //根据汉字获取编码 //GB2312 byte[] GB2312Byte = Encoding.GetEncoding("GB2312").GetBytes(str); //UTF-8 byte[] U 阅读全文
posted @ 2016-05-13 13:30 JesseLivermore 阅读(1951) 评论(0) 推荐(0)