新增导入格式
新增文件编码识别 新增编码 GB18030
This commit is contained in:
1 parent
1aa0954e43
commit
b949d0a67e
9 files changed
+19668
-4
No files matched your search
@@ -64,7 +64,7 @@ namespace TemuKJD.BLL.ImportConverters
|
||||
{
|
||||
if (File.Exists(filePath) == false) throw new Exception("文件不存在");
|
||||
FilePath = filePath;
|
||||
using (StreamReader sr = new StreamReader(filePath, Work.Api.UploadPinduoduoMain.GetFileEncoding(filePath)))
|
||||
using (StreamReader sr = new StreamReader(filePath, Ude.CharsetDetector.GetEncoding(filePath)))
|
||||
{
|
||||
RawData = sr.ReadToEnd();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user