Skip to content

Commit

Permalink
Read files assuming they are UTF-8 encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisalemanypuig committed Jul 14, 2023
1 parent 497021e commit 2823765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion treebank_parser/conllu/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def parse(self):
"""

linenumber = 1
with open(self._input_file, 'r') as f:
with open(self._input_file, 'r', encoding = "utf-8") as f:
tbp_logging.info(f"Input file {self._input_file} has been opened correctly.")

begin = time.perf_counter()
Expand Down

0 comments on commit 2823765

Please sign in to comment.