py3: Arch: try to fix unicode problem

This commit is contained in:
lorenz
2018-10-25 11:01:03 -03:00
committed by Yorik van Havre
parent d449f7f8c0
commit d3df5d979a
+3 -1
View File
@@ -210,7 +210,9 @@ class _ArchSchedule:
val = sumval
# get unit
if obj.Unit[i]:
ustr = obj.Unit[i].encode("utf8")
ustr = obj.Unit[i]
if sys.version_info.major < 3:
ustr = ustr.encode("utf8")
unit = ustr.replace("²","^2")
unit = unit.replace("³","^3")
if "2" in unit: