CsvHelper 解析数据乱码处理

                    using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
                    using (StreamReader reader = new StreamReader(fileStream, Encoding.GetEncoding("GB2312")))
                    using (var matchCsv = new CsvReader(reader))
                    {
do something
            }

转自:https://www.cnblogs.com/coky/p/6897282.html

posted @ 2021-10-12 15:59  歌·颂  阅读(181)  评论(0编辑  收藏  举报