Hello, > 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 .
n = u"пиво Müller "
print urllib.quote(n.encode("utf-8")) -> %D0%BF%D0%B8%D0%B2%D0%BE%20M
%C3%BCller
HTH,
--
Miki <[EMAIL PROTECTED]>
http://pythonwise.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
