Update DownloadUtils.java

pull/1/head
klboke 2017-12-26 10:56:14 +08:00 committed by GitHub
parent 91d606d697
commit 7b817cbcf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -73,8 +73,10 @@ public class DownloadUtils {
// 同样针对类txt文件如果成功msg包含的是转换后的文件名
response.setMsg(fileName);
// 转换文件编码为utf8
convertTextPlainFileCharsetToUtf8(realPath);
// txt转换文件编码为utf8
if("txt".equals(type)){
convertTextPlainFileCharsetToUtf8(realPath);
}
return response;
} catch (IOException e) {