On 10月4日, 上午5时38分, "Valery Khamenya" <[EMAIL PROTECTED]> wrote:
> 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

don't unicode the str, just urllib.quote("пиво Müller ")
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to