From a731841af8168cfa9a612840e2d86623082ea97e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 5 Aug 2012 14:38:11 +0200 Subject: [PATCH] Dict: Decode network stream as unicode. --- 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 3d8f4b1f5..6bba74ed5 100644 --- a/plugins/Dict/local/dictclient.py +++ b/plugins/Dict/local/dictclient.py @@ -53,7 +53,7 @@ class Connection: """Generic function to get a result code. It will return a list consisting of two items: the integer result code and the text following. You will not usually use this function directly.""" - line = self.rfile.readline().decode('ascii').strip() + line = self.rfile.readline().decode('utf8').strip() code, text = line.split(' ', 1) return [int(code), text]