Convert between Unicode domain names and ASCII-compatible encoding.
Internationalized Domain Names in Applications (IDNA)
$ python3 -c "import idna; print(idna.encode('münchen.de'))"$ python3 -c "import idna; print(idna.decode(b'xn--mnchen-3ya.de'))"$ python3 -c "import idna; print(idna.encode('日本.jp'))"$ python3 -c "import idna; idna.encode('café.fr'); print('Valid')"