2015年11月23日

数据类型互转,字符串编码

摘要: 1、字符串转byte数组string msg="你好你好";byte[] bytes = System.Text.Encoding.UTF8.GetBytes(msg);2、byte数组转字符串byte[] byts = File.ReadAllBytes(@"c:\ooo.txt");string... 阅读全文

posted @ 2015-11-23 17:45 crhdyl 阅读(380) 评论(0) 推荐(0) 编辑

导航