Я попытался преобразовать домен: http://pfefferm%C3%BChle.com в правильный домен IDN в форме Punycode. . Я использовал vb.net и php, но оба результата неверны.
ВБ.нет:
Dim idn As New System.Globalization.IdnMapping()
Dim punyCode As String = idn.GetAscii(http://pfeffermühle.com)
RESULT: punyCode= xn--http://pfeffermhle-06b.com
PHP:
echo idn_to_ascii('http://pfeffermühle.com');
RESULT: xn--http://pfeffermhle-06b.com
Но правильный результат: http://xn--pfeffermhle-0hb.com
Вы можете проверить это здесь:
http://www.idnconverter.se/http://xn--pfeffermhle-0hb.com
В чем проблема?
Пожалуйста помоги.
Спасибо