HK: extractor now needs to check for BOM
This commit is contained in:
parent
65d213c494
commit
74fe03414c
|
@ -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"):
|
||||||
|
|
Loading…
Reference in New Issue