Closed juliomalegria closed 10 years ago
Thanks for the report @juliomalegria; I'll look into this as time permits. Do you have a proposed solution for it?
@samba I'll implement one and open a pull request as soon as I have it ready.
Considering this closed, as your patch seems sound. (I haven't directly tested it yet.)
If you call
send()
with unicode data anUnicodeEncodeError
exception is raised because the code forces data to bestr
(code here).Traceback of the exception:
And if you encode the data as UTF8,
send()
now raises anUnicodeDecodeError
exception because the code attempts to encode data (again) as UTF8 (code here).Traceback of the second exception: