Arch: Fixed encoding bug in IFC export

This commit is contained in:
Yorik van Havre 2015-06-11 23:02:29 -03:00
parent 5040a97b0b
commit 40f8bb4143

View File

@ -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(",")])