From 1654bfca0c59212987fb89529f0b27a9f192bd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= Date: Sat, 21 Feb 2015 19:59:47 +0100 Subject: [PATCH] dictclient: Encode as utf-8 instead of ASCII dict.org has dictionaries with words containing non-ASCII characters. --- plugins/Dict/local/dictclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Dict/local/dictclient.py b/plugins/Dict/local/dictclient.py index c6f48f4f6..c5540cf6e 100644 --- a/plugins/Dict/local/dictclient.py +++ b/plugins/Dict/local/dictclient.py @@ -165,7 +165,7 @@ class Connection: def sendcommand(self, command): """Takes a command, without a newline character, and sends it to the server.""" - self.wfile.write(command.encode('ascii') + b"\n") + self.wfile.write(command.encode('utf-8') + b"\n") def define(self, database, word): """Returns a list of Definition objects for each matching