It appears that Slavko via mailop <li...@slavino.sk> said:
>+ dnspython requires extra effort to get it works with IDNA2008
>  and U-labels (by default it encodes "ß" as "ss")

Yeah, the python encodings.idna library has never been updated past IDNA2003 for
reasons I find unpersuasive. If you import the external idna library, which is
maintained by one of the people at ICANN who manage the root zone, you get
proper IDN2008 support.

>+ aiodns by default works with IDNA2008, thus no  extra care is
>  needed
>+ both are able to use underscored labels (eg. _dmarc), in contrast
>  of idna library, which rejects that domain name with invalid char

That is correct. IDNA is only for encoding hostnames, and hostnames do not allow
underscores.

For a long discussion of why IDNA is the way it is, see
https://www.ietf.org/archive/id/draft-klensin-idna-rfc5891bis-07.html

R's,
John
_______________________________________________
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop

Reply via email to