idna. Decoding from IDNA   [3.4.4]

^string:idna[encoded]

Note: this is method, not a constructor!


Decodes a string from IDNA representation (may be required to work with cyrillic domain names). To encode a string use
^string.idna[]

Detailed information on IDNA is available here: https://tools.ietf.org/html/rfc3490
and here https://en.wikipedia.org/wiki/Internationalized_domain_name

Example
$encoded[xn--e1afmkfd.xn--80akhbyknj4f]
$original[^string:idna[$encoded]]
$original

Outputs
.



Copyright © 1997–2017 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 04.04.2016