Commit 628e6d9f authored by Igor Dejanovic's avatar Igor Dejanovic

Open file in utf-8 mode.

parent d9033b49
......@@ -12,6 +12,7 @@
###############################################################################
from __future__ import print_function, unicode_literals
import codecs
import re
import bisect
from arpeggio.utils import isstr
......@@ -1041,7 +1042,7 @@ class Parser(object):
Args:
file_name(str): A file name.
"""
with open(file_name, 'r') as f:
with codecs.open(file_name, 'r', 'utf-8') as f:
content = f.read()
return self.parse(content)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment