X-Git-Url: https://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=b50442829cd05ebe94be831e2b4caacabcd5b36a;hp=373bd1672d835d6a0ecad229856d55cc3168d4f7;hb=652e68d3be1f6f7b97d715deef99a258f249595b;hpb=92a072f152417f607bd4cc5f549972ba76a15cad diff --git a/mpd.py b/mpd.py index 373bd16..b504428 100644 --- a/mpd.py +++ b/mpd.py @@ -426,8 +426,8 @@ class MPDClient(object): 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: