Message89551
| Author | effbot |
|---|---|
| Recipients | Neil Muller, effbot, jerith, nlopes |
| Date | 2009-06-21.00:15:35 |
| SpamBayes Score | 9.3515723e-07 |
| Marked as misclassified | No |
| Message-id | <1245543338.63.0.972041328534.issue6266@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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). |
|
| History | |||
|---|---|---|---|
| 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 | |