mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Dict: Decode network stream as unicode.
This commit is contained in:
parent
0e450a5eff
commit
a731841af8
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user