[Material] Respect unicode filenames

Fixes #4027
This commit is contained in:
luz.paz
2019-06-18 09:41:14 -04:00
committed by Bernd Hahnebach
parent 798a910265
commit 75b52c85b0

View File

@@ -70,7 +70,7 @@ def importFCMat(fileName):
)
Config = configparser.RawConfigParser()
Config.optionxform = str
Config.read(fileName)
Config.read(fileName, encoding='utf-8') # respect unicode filenames
dict1 = {}
for section in Config.sections():
options = Config.options(section)