Hello,

I didn't see utf8 support in fastbinary.c in thrift-0.4.0, so I hacked
something in. I'm not a Python C API expert (nor a unicode expert),
but the attached patch appears to work when sending utf8 encoded
strings whereas without the patch I'd encounter the
"UnicodeDecodeError: 'ascii' codec can't decode byte ..." error.

I offer it to this mailing list for review as I'm interested in
feedback regarding correctness and general interest in this patch.

thx
leo

Attachment: fastbinary-utf8.patch.gz
Description: GNU Zip compressed data

Reply via email to