urllib2: non-ascii characters in url

John J. Lee jjl at pobox.com
Wed Jun 18 20:13:43 EDT 2003


"Achim Domma" <domma at procoders.net> writes:
[...]
> I had to add a
> 
> q = urllib.quote(q,"=&")
> 
> but then it works fine. Thanks!

You might well also want to look at this:

http://www.python.org/dev/doc/devel/lib/module-encodings.idna.html


John




More information about the Python-list mailing list