Dict: Decode network stream as unicode.

This commit is contained in:
Valentin Lorentz 2012-08-05 14:38:11 +02:00
parent 0e450a5eff
commit a731841af8
1 changed files with 1 additions and 1 deletions

View File

@ -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]