From 2f78c021db8d11daf00c1e0ad7bf0e49be7f6be2 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 29 Dec 2014 18:54:33 -0200 Subject: [PATCH] Arch: Fixed encodings in Survey - fixes #1825 --- src/Mod/Arch/ArchCommands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index a247cefa3d16..489e22bc9e0f 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -727,7 +727,7 @@ def survey(callback=False): t = t.getUserPreferred()[0] t = t.encode("utf8") anno.LabelText = "l " + t - FreeCAD.Console.PrintMessage("Object: " + n + ", Element: Whole, Length: " + t + "\n") + FreeCAD.Console.PrintMessage("Object: " + n + ", Element: Whole, Length: " + t.decode("utf8") + "\n") if FreeCAD.GuiUp and t: QtGui.qApp.clipboard().setText(t) else: @@ -755,13 +755,13 @@ def survey(callback=False): t = t.getUserPreferred()[0] t = t.encode("utf8") anno.LabelText = "l " + t - FreeCAD.Console.PrintMessage("Object: " + n + ", Element: " + el + ", Length: " + t + "\n") + FreeCAD.Console.PrintMessage("Object: " + n + ", Element: " + el + ", Length: " + t.decode("utf8") + "\n") elif "Vertex" in el: t = FreeCAD.Units.Quantity(e.Z,FreeCAD.Units.Length) t = t.getUserPreferred()[0] t = t.encode("utf8") anno.LabelText = "z " + t - FreeCAD.Console.PrintMessage("Object: " + n + ", Element: " + el + ", Zcoord: " + t + "\n") + FreeCAD.Console.PrintMessage("Object: " + n + ", Element: " + el + ", Zcoord: " + t.decode("utf8") + "\n") if FreeCAD.GuiUp and t: QtGui.qApp.clipboard().setText(t)