Re: Add support for IDNA 2008

2022-09-06 Thread Carlton Gibson
Hey Julien. Thanks, OK... 📖 The Python docs have it : > If you need the IDNA 2008 standard from *RFC 5891* and *RFC 5895* , use the th

Re: Add support for IDNA 2008

2022-09-06 Thread 'Julien Bernard' via Django developers (Contributions to Django itself)
Hi Carlton, IDNA 2008 made some changes in the valid or invalid IDNs and some differences in the ways some characters are transformed in Punycode compared to IDNA 2003 for multiple reasons. A difference that is often used as an example is the german 'ß' character. In IDNA 2003 it is transformed

Re: Add support for IDNA 2008

2022-09-06 Thread Carlton Gibson
Hey Julian. What's maybe missing is some concrete cases. "This conversion should be made IDNA 2008 compliant." — OK, but what does that buy us? Maybe the idna package is OK... It's widely depended on already — I got it for free yesterday installing httpx in a project — and packaging isn't what it

Re: Add support for IDNA 2008

2022-09-06 Thread 'Julien Bernard' via Django developers (Contributions to Django itself)
Thanks Carlton. This makes total sense to keep things simple and avoid bringing another dependency in the context of validation, providing that you won't prevent valid URLs to be accepted. That's where it can be tricky but it seems reasonable to think that the current domain validation is too