libidn

Converts internationalized domain names to ASCII-compatible encoding

brewmacoslinux
Try with needOr install directly
Source

About

International domain name library

Commands

idn

Examples

Convert an internationalized domain name to ASCII$ idn münchen.de
Reverse conversion from ASCII to Unicode representation$ idn -d xn--mnchen-3ya.de
Process a domain name using UTF-8 input$ echo 'münchen.de' | idn