python-mpd now deals only with unicode
self._sock = self._connect_unix(host)
else:
self._sock = self._connect_tcp(host, port)
self._sock = self._connect_unix(host)
else:
self._sock = self._connect_tcp(host, port)
- self._rfile = self._sock.makefile("r")
- self._wfile = self._sock.makefile("w")
+ self._rfile = self._sock.makefile("r", encoding='utf-8')
+ self._wfile = self._sock.makefile("w", encoding='utf-8')
try:
self._hello()
except:
try:
self._hello()
except: