K
K
Kindman2011-08-29 17:19:17
Algorithms
Kindman, 2011-08-29 17:19:17

Manual Encoding/Decoding PUNYCODE?

I read RFC 3492 and didn’t “smoke” as from
(I) Russian (Cyrillic): “why don’t they speak Russian”
u+043F u+043E u+0447 u+0435 u+043C u+0443 u+0436 u+0435 u+043E
u+043D u+0438 u+043D u+0435 u+0433 u+043E u+0432 u+043E u+0440
u+044F u+0442 u+043F u+043E u+0440 u+0443 u+0441 u+ 0441 u+043A
u+0438
get
Punycode: b1abfaaepdrnnbgefbaDotcwatmq2g4l
Gjvjubnt hfpj,hfnmcz? gj;fkeqcnf!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
skitales, 2011-08-29
@skitales

The Wikipedia article will help you.

D
Denis Turenko, 2011-08-30
@Dennion

Download www.phpclasses.org/browse/file/5845.html It
is used like this: Be sure to pre-drive it into UTF-8!
$dom_name=iconv("windows-1251", "UTF-8", $name_rf);
require_once './lib/convert/idna_convert.class.php';
$IDN = new idna_convert();
$name=$IDN->encode($dom_name);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question