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();