Commit 67686e99 authored by 陈精华's avatar 陈精华 Committed by kl

修复excel预览网页乱码问题

parent 90554462
...@@ -249,7 +249,7 @@ public class FileUtils { ...@@ -249,7 +249,7 @@ public class FileUtils {
} }
// 重新写入文件 // 重新写入文件
try(FileOutputStream fos = new FileOutputStream(outFilePath); 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()); writer.write(sb.toString());
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
e.printStackTrace(); e.printStackTrace();
......
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