Skip to content

Commit e972ecb

Browse files
committed
add utf8 encoding for opening file
1 parent 040c7c0 commit e972ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spacy/cli/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _get_converter(msg, converter, input_path):
253253
if converter == "auto":
254254
converter = input_path.suffix[1:]
255255
if converter == "ner" or converter == "iob":
256-
with input_path.open() as file_:
256+
with input_path.open(encoding="utf8") as file_:
257257
input_data = file_.read()
258258
converter_autodetect = autodetect_ner_format(input_data)
259259
if converter_autodetect == "ner":

0 commit comments

Comments
 (0)