Closed radiosilence closed 10 years ago
Ok, this still doesn't quite seem to fix it.
Right, second commit fixed the issue.
Basically, on the wire, it was picking up UTF-8 encoded bytes. Then because it was trying to format it to a string, it was trying to decode said bytes with ASCII before formatting them. And thus failed. So, you need to decode the source bytes into a unicode object using .decode('utf-8'), and make the destination string a unicode object.
Still failing on Python 3. Hmm. It seems like the "msg" is being a bytes (str) on Python 2.7, and a unicode (str) in Python 3.
Any ideas?
This is kind of a messy solution.
Issue #11