未验证 提交 ff6665c7 编写于 作者: C Coin 提交者: GitHub

fix(gui): use correct charset when writing mapping file (PR #992)

上级 aa8fd3c8
......@@ -137,8 +137,8 @@ public class RenameDialog extends JDialog {
File tmpFile = File.createTempFile("deobf_tmp_", ".txt");
try (FileOutputStream fileOut = new FileOutputStream(tmpFile)) {
for (String entry : deobfMap) {
fileOut.write(entry.getBytes());
fileOut.write(System.lineSeparator().getBytes());
fileOut.write(entry.getBytes(StandardCharsets.UTF_8));
fileOut.write(System.lineSeparator().getBytes(StandardCharsets.UTF_8));
}
}
File oldMap = File.createTempFile("deobf_bak_", ".txt");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册