I tried to conver the domain: http://pfeffermühle.com to a correct IDN Domain in Punycode form. I used vb.net and php, but both results are not correct.
VB.net:
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
But correct result is: http://xn--pfeffermhle-0hb.com
You can check it here:
http://www.idnconverter.se/http://xn--pfeffermhle-0hb.com
What is the problem?
Please help.
Thanks
".idn_to_ascii($s1); – memme Jan 18 '17 at 09:04