From aedb59f8540109f27d5b9e6b59b7e429f9455c42 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 29 Oct 2015 12:22:03 +0000 Subject: [PATCH] [Console] Use utf8_encoded for non-interactive mode --- deluge/ui/console/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index a5738b20e..46ab99f07 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -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)))