International domain names
Convert domain names with accents to the ASCII form used by DNS (Punycode) and back. Typical uses: store or compare domain names typed by users.
idn to_asciiidn to_asciiidn to_unicodeidn to_unicode

idn to_ascii <domain>


Description

    To the ASCII form

Parameters

    domain:   The domain name - String - required
admin
idn to_ascii "münchen.de"
mentdb
xn--mnchen-3ya.de
Japanese
admin
idn to_ascii "日本語.jp"
mentdb
xn--wgv71a119e.jp
the IDNA2003 rule on ß
admin
idn to_ascii "faß.de"
mentdb
fass.de

idn to_ascii <domain> <params>


Description

    To the ASCII form with parameters: allow_unassigned (false), use_std3_rules (false; true: letters, digits and hyphens only)

Parameters

    domain:   The domain name - String - required
    params:   The parameters as JSON - String - required
admin
idn to_ascii "a b.de" "{\"use_std3_rules\": true}"
mentdb
ERROR: Sorry, an error appears (the parameter 'domain' is not a valid international name (Contains non-LDH ASCII characters)).

idn to_unicode <domain>


Description

    To the Unicode form. A label that cannot be decoded stays as it is

Parameters

    domain:   The domain name - String - required
admin
idn to_unicode "xn--mnchen-3ya.de"
mentdb
münchen.de

idn to_unicode <domain> <params>


Description

    To the Unicode form with the same parameters

Parameters

    domain:   The domain name - String - required
    params:   The parameters as JSON - String - required
admin
idn to_unicode "xn--wgv71a119e.jp" "{\"allow_unassigned\": true}"
mentdb
日本語.jp