Unverified Commit 7b817cbc authored by klboke's avatar klboke Committed by GitHub

Update DownloadUtils.java

parent 91d606d6
...@@ -73,8 +73,10 @@ public class DownloadUtils { ...@@ -73,8 +73,10 @@ public class DownloadUtils {
// 同样针对类txt文件,如果成功msg包含的是转换后的文件名 // 同样针对类txt文件,如果成功msg包含的是转换后的文件名
response.setMsg(fileName); response.setMsg(fileName);
// 转换文件编码为utf8 // txt转换文件编码为utf8
if("txt".equals(type)){
convertTextPlainFileCharsetToUtf8(realPath); convertTextPlainFileCharsetToUtf8(realPath);
}
return response; return response;
} catch (IOException e) { } catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment