From 40f8bb414325fd908147e8e9bef9fffec281d059 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 11 Jun 2015 23:02:29 -0300 Subject: [PATCH] Arch: Fixed encoding bug in IFC export --- src/Mod/Arch/importIFC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index 916be361fd52..46fdf38a8d04 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -855,7 +855,7 @@ def export(exportList,filename): # materials materials = {} for m in Arch.getDocumentMaterials(): - mat = ifcfile.createIfcMaterial(str(m.Label)) + mat = ifcfile.createIfcMaterial(m.Label.encode("utf8")) materials[m.Label] = mat if "Color" in m.Material: rgb = tuple([float(f) for f in m.Material['Color'].strip("()").split(",")])