Merge pull request #1057 from kyrias/dictclient-utf8

Make dictclient.py unicode capable
This commit is contained in:
Valentin Lorentz 2015-02-21 20:22:19 +01:00
commit a59784a366

View File

@ -165,7 +165,7 @@ class Connection:
def sendcommand(self, command): def sendcommand(self, command):
"""Takes a command, without a newline character, and sends it to """Takes a command, without a newline character, and sends it to
the server.""" the server."""
self.wfile.write(command.encode('ascii') + b"\n") self.wfile.write(command.encode('utf-8') + b"\n")
def define(self, database, word): def define(self, database, word):
"""Returns a list of Definition objects for each matching """Returns a list of Definition objects for each matching