From 4de7b1c923fa2b668adc1fc5f9a293d8e847ddc0 Mon Sep 17 00:00:00 2001 From: Raffson Date: Mon, 28 Oct 2024 12:50:01 +0100 Subject: [PATCH] Force utf8 encoding in TXT-briefing Fix #408 --- game/missiongenerator/kneeboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/missiongenerator/kneeboard.py b/game/missiongenerator/kneeboard.py index 3444018c..bd50bd1b 100644 --- a/game/missiongenerator/kneeboard.py +++ b/game/missiongenerator/kneeboard.py @@ -152,7 +152,7 @@ class KneeboardPageWriter: def write(self, path: Path) -> None: self.image.save(path) - path.with_suffix(".txt").write_text(self.get_text_string()) + path.with_suffix(".txt").write_text(self.get_text_string(), "utf8") @staticmethod def wrap_line(inputstr: str, max_length: int) -> str: