Hello,
> things like urllib.quote(u"пиво Müller ") fail with error message:
> : 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
On 10月4日, 上午5时38分, "Valery Khamenya" <[EMAIL PROTECTED]> wrote:
> Hi all
>
> things like urllib.quote(u"пиво Müller ") fail with error message:
> : 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
In message <[EMAIL PROTECTED]>, Valery
Khamenya wrote:
> things like urllib.quote(u"пиво Müller ") fail with error message:
> : u'\u043f'
Did you try encoding it as UTF-8 first?
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Oct 3, 2008 at 5:38 PM, Valery Khamenya <[EMAIL PROTECTED]> wrote:
> Hi all
> things like urllib.quote(u"пиво Müller ") fail with error message:
> : u'\u043f'
> Similarly with urllib2.
> Anyone got a hint?? I need it to form the URI containing non-ascii chars.
Do you know what, exactly, yo
Hi all
things like urllib.quote(u"пиво Müller ") fail with error message:
: 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
--
http://mail.python.org/mailman/listinfo/python-list