From 064dd486734675254640c595b5ef6ff709fe9de4 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Tue, 16 May 2023 00:31:51 -0500 Subject: [PATCH] Bandaid fix for TBL encoding --- ToolsTales.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ToolsTales.py b/ToolsTales.py index 5158a4e..629385e 100644 --- a/ToolsTales.py +++ b/ToolsTales.py @@ -540,7 +540,7 @@ class ToolsTales: output += b"\x01" else: for c in t: - output += self.ijsonTblTags["TBL"].get(c, c.encode("cp932")) + output += struct.pack(">H", self.ijsonTblTags["TBL"].get(c, int.from_bytes(c.encode("cp932"), "big"))) return output