修复excel预览网页乱码问题
parent
90554462dc
commit
67686e99f0
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue