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 © 19972025 Art. Lebedev Studio |
http://www.artlebedev.com
Last updated: 05.04.2016