mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
HK: extractor now needs to check for BOM
This commit is contained in:
@@ -28,7 +28,7 @@ def put_digits_at_end(text: str) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def hk_loads(file: str) -> typing.Any:
|
def hk_loads(file: str) -> typing.Any:
|
||||||
with open(file) as f:
|
with open(file, encoding="utf-8-sig") as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
new_data = []
|
new_data = []
|
||||||
for row in data.split("\n"):
|
for row in data.split("\n"):
|
||||||
|
Reference in New Issue
Block a user