Skip to content

Commit ff77556

Browse files
committed
Change open encoding
1 parent 8e31d6e commit ff77556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/corpus/oscar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def word_freqs() -> List[Tuple[str, int]]:
2525
"""
2626
word_freqs = []
2727
_path = get_corpus_path(_FILENAME)
28-
with open(_path, "r", encoding="utf-8") as f:
28+
with open(_path, "r", encoding="utf-8-sig") as f:
2929
_data = [i for i in f.readlines()]
3030
del _data[0]
3131
for line in _data:

0 commit comments

Comments
 (0)