From 74fe03414ca03b3c922476449ad01afbed66516d Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 15 Jun 2022 03:26:54 +0200 Subject: [PATCH] HK: extractor now needs to check for BOM --- worlds/hk/Extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/hk/Extractor.py b/worlds/hk/Extractor.py index 6c23a44e..6f6038e2 100644 --- a/worlds/hk/Extractor.py +++ b/worlds/hk/Extractor.py @@ -28,7 +28,7 @@ def put_digits_at_end(text: str) -> str: def hk_loads(file: str) -> typing.Any: - with open(file) as f: + with open(file, encoding="utf-8-sig") as f: data = f.read() new_data = [] for row in data.split("\n"):