This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients LDTech, Mi.Zou, ezio.melotti, orsenthil, terry.reedy, vajrasky
Date 2013-07-18.10:29:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The script for demonstrating bug can be simplified to:

import urllib.request
url = "äfer/order/date_desc"

req = urllib.request.Request(url)
response = urllib.request.urlopen(req, timeout=30)
the_page ='utf-8')

Attached the simple patch to solve this problem.

The question is whether we should fix this problem in urllib or not because strictly speaking the url should be ascii characters only. But if the Firefox can open this url, why not urllib?

I will contemplate about this problem and if I (or other people) think that urllib should handle url containing non-ascii characters, then I will add additional unit test.

Until then, people can use third party package, which is
request package from

r = requests.get("äfer/order/date_desc")
Date User Action Args
2013-07-18 10:29:06vajraskysetrecipients: + vajrasky, terry.reedy, orsenthil, ezio.melotti, Mi.Zou, LDTech
2013-07-18 10:29:06vajraskysetmessageid: <>
2013-07-18 10:29:06vajraskylinkissue17214 messages
2013-07-18 10:29:05vajraskycreate