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

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Oct 4 05:15:38 CEST 2008

In message <mailman.1981.1223069889.3487.python-list at>, 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