idna. Encoding to IDNA   [3.4.4]

^string.idna[]

Method encodes string to IDNA representation (may be required to work with cyrillic domain names). To decode a string from IDNA to it's original, use
^string:idna[encoded]

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

Example
$original[.]
<pre>^original.idna[]</pre>

Outputs
xn--e1afmkfd.xn--80akhbyknj4f



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