Skip to content

Commit

Permalink
Draft: Further fix in text encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jul 11, 2014
1 parent e46ec63 commit a3a6ec2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Draft/Draft.py
Expand Up @@ -3214,9 +3214,9 @@ def updateData(self, obj, prop):
# set text value
l = self.p3.sub(self.p2).Length
if hasattr(obj.ViewObject,"Decimals"):
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).encode("utf8")
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).decode("latin1").encode("utf8")
else:
self.string = DraftGui.displayExternal(l,getParam("dimPrecision",2),'Length',su).encode("utf8")
self.string = DraftGui.displayExternal(l,getParam("dimPrecision",2),'Length',su).decode("latin1").encode("utf8")
if hasattr(obj.ViewObject,"Override"):
if obj.ViewObject.Override:
try:
Expand Down Expand Up @@ -3503,9 +3503,9 @@ def updateData(self, obj, prop):
if hasattr(obj.ViewObject,"ShowUnit"):
su = obj.ViewObject.ShowUnit
if hasattr(obj.ViewObject,"Decimals"):
self.string = DraftGui.displayExternal(a,obj.ViewObject.Decimals,'Angle',su).encode("utf8")
self.string = DraftGui.displayExternal(a,obj.ViewObject.Decimals,'Angle',su).decode("latin1").encode("utf8")
else:
self.string = DraftGui.displayExternal(a,getParam("dimPrecision",2),'Angle',su).encode("utf8")
self.string = DraftGui.displayExternal(a,getParam("dimPrecision",2),'Angle',su).decode("latin1").encode("utf8")
if obj.ViewObject.Override:
try:
from pivy import coin
Expand Down

0 comments on commit a3a6ec2

Please sign in to comment.