[Console] Use utf8_encoded for non-interactive mode

This commit is contained in:
Calum Lind 2015-10-29 12:22:03 +00:00
parent 3a03bb8dd7
commit aedb59f854
1 changed files with 2 additions and 2 deletions

View File

@ -426,7 +426,7 @@ Please use commands from the command line, eg:\n
component.get("LegacyUI").add_line(s, False)
self.events.append(s)
else:
print(colors.strip_colors(s.encode(self.encoding)))
print(colors.strip_colors(deluge.common.utf8_encoded(s)))
def write_event(self, s):
if self.interactive:
@ -437,4 +437,4 @@ Please use commands from the command line, eg:\n
component.get("LegacyUI").add_line(s, False)
self.events.append(s)
else:
print(colors.strip_colors(s.encode(self.encoding)))
print(colors.strip_colors(deluge.common.utf8_encoded(s)))