Problem: neither urllib2.quote nor urllib.quote encode the unicode strings arguments
Valery Khamenya
khamenya at gmail.com
Fri Oct 3 17:38:05 EDT 2008
Hi all
things like urllib.quote(u"пиво Müller ") fail with error message:
<type 'exceptions.KeyError'>: u'\u043f'
Similarly with urllib2.
Anyone got a hint?? I need it to form the URI containing non-ascii chars.
thanks in advance,
best regards
--
Valery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081003/a4b55ddc/attachment.html>
More information about the Python-list
mailing list