From 1a451ffb93ac3397b94ec238b8503f32f10dbe90 Mon Sep 17 00:00:00 2001 From: Burning_TNT Date: Sat, 21 Oct 2023 11:55:25 +0800 Subject: [PATCH] Fix #2547 --- HMCL/src/main/java/org/jackhuang/hmcl/game/LogExporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/game/LogExporter.java b/HMCL/src/main/java/org/jackhuang/hmcl/game/LogExporter.java index 844c33ad1d..74d8b53876 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/game/LogExporter.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/game/LogExporter.java @@ -94,7 +94,7 @@ private static void processLogs(Path directory, String fileExtension, String log if (Files.isRegularFile(file)) { FileTime time = Files.readAttributes(file, BasicFileAttributes.class).lastModifiedTime(); if (time.toMillis() >= processStartTime) { - String crashLog = Logging.filterForbiddenToken(FileUtils.readText(file)); + String crashLog = Logging.filterForbiddenToken(FileUtils.readText(file, OperatingSystem.NATIVE_CHARSET)); zipper.putTextFile(crashLog, file.getFileName().toString()); } }