[Python-Dev] urllib.quote and unquote - Unicode issues

Oleg Broytmann phd at phd.pp.ru
Wed Jul 30 16:53:06 CEST 2008

On Thu, Jul 31, 2008 at 12:11:40AM +1000, Matt Giuca wrote:
> 2. Default to UTF-8.
> In favour: Matt Giuca, Brett Cannon, Jeroen Ruigrok van der Werven

   Count me too: +1. Most sites I use theese days use UTF-8 for URL
encoding. Examples:


LingVo (Russian-English dictionary):

>>> print urllib.quote(unicode('питон', 'koi8-r').encode('utf-8'))

     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-Dev mailing list