Skip to content

Commit

Permalink
Arch: fixed string encoding in Space object
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Sep 24, 2014
1 parent e88b712 commit f0c59e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Mod/Arch/ArchSpace.py
Expand Up @@ -333,17 +333,17 @@ def onChanged(self,vobj,prop):
qt = str(qt)
if hasattr(vobj,"ShowUnit"):
if vobj.ShowUnit:
qt = qt + q[2].replace("^2","²")
t = t.replace("$area",qt.decode("utf8"))
t = t.replace("$label",vobj.Object.Label.decode("utf8"))
qt = qt + q[2].replace("^2",u"\xb2") # square symbol
t = t.replace("$area",qt)
t = t.replace("$label",vobj.Object.Label)
if hasattr(vobj.Object,"Tag"):
t = t.replace("$tag",vobj.Object.Tag.decode("utf8"))
t = t.replace("$tag",vobj.Object.Tag)
if hasattr(vobj.Object,"FinishFloor"):
t = t.replace("$floor",vobj.Object.FinishFloor.decode("utf8"))
t = t.replace("$floor",vobj.Object.FinishFloor)
if hasattr(vobj.Object,"FinishWalls"):
t = t.replace("$walls",vobj.Object.FinishWalls.decode("utf8"))
t = t.replace("$walls",vobj.Object.FinishWalls)
if hasattr(vobj.Object,"FinishCeiling"):
t = t.replace("$ceiling",vobj.Object.FinishCeiling.decode("utf8"))
t = t.replace("$ceiling",vobj.Object.FinishCeiling)
if first:
text1.append(t.encode("utf8"))
else:
Expand Down

0 comments on commit f0c59e4

Please sign in to comment.