This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:39effbotsetrecipients: + effbot, Neil Muller, jerith, nlopes
2009-06-21 00:15:38effbotsetmessageid: <1245543338.63.0.972041328534.issue6266@psf.upfronthosting.co.za>
2009-06-21 00:15:37effbotlinkissue6266 messages
2009-06-21 00:15:36effbotcreate