idna · PyPI
https://pypi.org/project/idna12.10.2021 · >>> idna. encode ('Königsgäßchen', uts46 = True, transitional = True) 'xn--knigsgsschen-lcb0w' Implementors should use transitional processing with caution, only in rare cases where conversion from legacy labels to current labels must be performed (i.e. IDNA implementations that pre-date 2008).
idna · PyPI
pypi.org › project › idnaOct 12, 2021 · Encoding of symbols like emoji is expressly prohibited by the technical standard IDNA 2008 and emoji domains are broadly phased out across the domain industry due to associated security risks. For now, applications that wish need to support these non-compliant labels may wish to consider trying the encode/decode operation in this library first ...