From 67686e99f019f22789d81dc569bca34d2245f163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=B2=BE=E5=8D=8E?= <842761733@qq.com> Date: Thu, 9 May 2019 15:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dexcel=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E7=BD=91=E9=A1=B5=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jodconverter-web/src/main/java/cn/keking/utils/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jodconverter-web/src/main/java/cn/keking/utils/FileUtils.java b/jodconverter-web/src/main/java/cn/keking/utils/FileUtils.java index 470051a6..d8669d42 100644 --- a/jodconverter-web/src/main/java/cn/keking/utils/FileUtils.java +++ b/jodconverter-web/src/main/java/cn/keking/utils/FileUtils.java @@ -249,7 +249,7 @@ public class FileUtils { } // 重新写入文件 try(FileOutputStream fos = new FileOutputStream(outFilePath); - BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(fos))){ + BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(fos, "utf-8"))) { writer.write(sb.toString()); } catch (FileNotFoundException e) { e.printStackTrace();