Internationalized domain names not working with URLopen

Andrew Berg bahamutzero8825 at gmail.com
Wed Jun 13 08:42:41 CEST 2012


On 6/13/2012 1:17 AM, John Nagle wrote:
> What does "urllib2" want?  Percent escapes?  Punycode?
Looks like Punycode is the correct answer:
https://en.wikipedia.org/wiki/Internationalized_domain_name#ToASCII_and_ToUnicode

I haven't tried it, though.
-- 
CPython 3.3.0a3 | Windows NT 6.1.7601.17790




More information about the Python-list mailing list