diff --git a/pythonlib/games/ToolsTales.py b/pythonlib/games/ToolsTales.py index 34ffa5b..b1b57f1 100644 --- a/pythonlib/games/ToolsTales.py +++ b/pythonlib/games/ToolsTales.py @@ -490,7 +490,7 @@ class ToolsTales: else: output += struct.pack("H", self.ijsonTblTags["TBL"].get(c, int.from_bytes(c.encode("cp932"), "big"))) + if c in self.PRINTABLE_CHARS: + output += c.encode("cp932") + else: + output += struct.pack(">H", self.ijsonTblTags["TBL"].get(c, int.from_bytes(c.encode("cp932"), "big"))) return output