diff --git a/po/update_po.py b/po/update_po.py index 6c710af21..594402455 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -174,7 +174,7 @@ def TipsParse(filename, mark): tip = tip.replace("", "") tip = tip.replace('\n<_tip number="%(number)s">' % key.attrib, "") else: # python3 support - tip = tip.decode(encoding="UTF-8") + tip = tip.decode("utf-8") tip = tip.replace('<_tip number="%(number)s">' % key.attrib, "") tip = tip.replace("
", "
") #tip = tip.replace("\n\n", "\n") # special case tip 7