mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
[Console] Use utf8_encoded for non-interactive mode
This commit is contained in:
parent
3a03bb8dd7
commit
aedb59f854
1 changed files with 2 additions and 2 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue