mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-19 00:22:50 +01:00
Merge pull request #1057 from kyrias/dictclient-utf8
Make dictclient.py unicode capable
This commit is contained in:
commit
a59784a366
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user