﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25337	Validate domains against IDNA2008 instead of IDNA2003	JocelynD	nobody	"IDNA domains validation is a mess, anyway, it's going forward, and IDNA2008 refines IDNA2003 proposal to better define what is a valid IDN domain and what is not.

ICANN/IANA [https://www.icann.org/resources/pages/idn-guidelines-2011-09-02-en recomends using IDNA2008]

However, python standard lib [https://docs.python.org/3/library/codecs.html?highlight=idna#module-encodings.idna only offers IDNA2003] validation in , and one have to use [https://pypi.python.org/pypi/idna a 3rd party lib] to encode/validate against IDNA2008. 

Currently, on URLValidator, EmailValidator ([https://code.djangoproject.com/ticket/18119 and soon DomainNameValidator ?]), Django relies on Python builtin `str.encode('idna')`.

I don't come with a solution for Django, and I know that Django avoid to depend on 3rd-party libs.

However I do think that it would be a good thing that Django validates domains against IDNA2008. 

What do you think ?"	New feature	closed	Forms	1.8	Normal	needsinfo	domains idn idna		Unreviewed	0	0	0	0	0	0
