Problem: neither urllib2.quote nor urllib.quote encode the unicode strings arguments

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Oct 3 23:15:38 EDT 2008


In message <mailman.1981.1223069889.3487.python-list at python.org>, Valery
Khamenya wrote:

> things like urllib.quote(u"пиво Müller ") fail with error message:
> <type 'exceptions.KeyError'>: u'\u043f'

Did you try encoding it as UTF-8 first?



More information about the Python-list mailing list