Skip to content

Commit

Permalink
Draft: further fix for utf8 texts - issue #1404
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Apr 19, 2014
1 parent e2b24d8 commit 96967a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/Draft.py
Expand Up @@ -3209,7 +3209,7 @@ def updateData(self, obj, prop):
# only available in Coin3D >= 4.0
self.string = obj.ViewObject.Override.encode("utf8").replace("$dim",self.string)
except:
self.string = unicode(obj.ViewObject.Override).encode("latin1").replace("$dim",self.string)
self.string = obj.ViewObject.Override.encode("utf8").replace("$dim",self.string).decode("latin1")
self.text.string = self.text3d.string = self.string

# set the distance property
Expand Down

0 comments on commit 96967a5

Please sign in to comment.