Force utf8 encoding in TXT-briefing

Fix #408
This commit is contained in:
Raffson 2024-10-28 12:50:01 +01:00
parent 4711473b64
commit 4de7b1c923
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -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: