Browse Source

修复excel预览网页乱码问题

pull/9/head
陈精华 6 years ago committed by kl
parent
commit
67686e99f0
  1. 2
      jodconverter-web/src/main/java/cn/keking/utils/FileUtils.java

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

Loading…
Cancel
Save