read fea files with encoding utf-8

see https://github.com/adobe-type-tools/afdko/issues/165
This commit is contained in:
Frederik Berlaen 2018-09-04 21:07:16 +02:00
parent 08c006071b
commit cffbfeeca1

View File

@ -443,7 +443,7 @@ class UFOReader(object):
path = os.path.join(self._path, FEATURES_FILENAME)
if not self._checkForFile(path):
return ""
with open(path, "r") as f:
with open(path, "r", encoding="utf-8") as f:
text = f.read()
return text