Message89551
Converting from UTF-8 to Unicode is the right thing to do, but
converting back to Latin-1 is not correct -- note that ET returns a
Unicode string, not an 8-bit string. There's a "makestring" helper that
does the right thing in the library; just changing:
parcel = Py_BuildValue("ss", (prefix) ? prefix : "", uri);
to
parcel = Py_BuildValue("sN", (prefix) ? prefix : "", makestring(uri));
should work (even if you should probably do that in two steps, and look
for errors from makestring before proceeding). |
|
Date |
User |
Action |
Args |
2009-06-21 00:15:39 | effbot | set | recipients:
+ effbot, Neil Muller, jerith, nlopes |
2009-06-21 00:15:38 | effbot | set | messageid: <1245543338.63.0.972041328534.issue6266@psf.upfronthosting.co.za> |
2009-06-21 00:15:37 | effbot | link | issue6266 messages |
2009-06-21 00:15:36 | effbot | create | |
|