From 75b52c85b0b092ab79ccd26a8632a8be44c1486c Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Tue, 18 Jun 2019 09:41:14 -0400 Subject: [PATCH] [Material] Respect unicode filenames Fixes #4027 --- src/Mod/Material/Material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Material/Material.py b/src/Mod/Material/Material.py index 893d3ded65..1e15ea74d0 100644 --- a/src/Mod/Material/Material.py +++ b/src/Mod/Material/Material.py @@ -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)