From 0a74812eeb7ace9ff16ab600dd0014d6922838b5 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 28 Oct 2015 12:43:41 +0000 Subject: [PATCH] [Console] Fix adding non-ascii torrent in non-interactive mode --- deluge/ui/console/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index a00eca3d9..64afc46f5 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -289,7 +289,7 @@ Please use commands from the command line, eg:\n if self.interactive: self.screen.add_line(line, not self.batch_write) else: - print colors.strip_colors(line.encode("utf-8")) + print colors.strip_colors(deluge.common.utf8_encoded(line)) def do_command(self, cmd): """