摘要: 在NET framework中 中文文档使用的UTF8,我们通常使用Encoding.Default拿去。 但是在NET Core通常使用Encoding.GetEncoding("GB2312"); 否则容易出现乱码问题。 阅读全文
posted @ 2020-08-20 13:51 hurui12 阅读(341) 评论(0) 推荐(0) 编辑
摘要: List<string> Listfiles = Directory.GetFiles(@"C:\Users\hurui\Desktop\MyFolder","*PJ*",SearchOption.AllDirectories).ToList(); //第一个参数为文件夹名 第二个星号和sql的模糊 阅读全文
posted @ 2020-08-20 11:44 hurui12 阅读(782) 评论(0) 推荐(0) 编辑