Fix error when running initialise.py on localized Windows

This commit is contained in:
Corwin74 2020-02-29 21:05:15 +03:00
parent 814170d1e2
commit c6abf82c17

View File

@ -7,7 +7,7 @@ def ktx_to_dict(input_file, keystarter='<'):
""" parsing keyed text to a python dictionary. """
answer = dict()
with open(input_file, 'r+') as f:
with open(input_file, 'r+', encoding='utf-8') as f:
lines = f.readlines()
k, val = '', ''