thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Kim <leo...@gmail.com>
Subject fastbinary.c utf8 support
Date Fri, 03 Sep 2010 02:26:58 GMT
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

Mime
View raw message