|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-07-30 14:37 UTC] petrox81 at yahoo dot it
Description:
------------
echo idn_to_utf8('xn--sorra-lqa.it');
Test script:
---------------
wrong codification
Expected result:
----------------
sßorra.it
Actual result:
--------------
xn--sorra-lqa.it
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
IMO the reported behavior is not a bug, as it conforms to RFC 3490. To have an RFC 5890 conforming conversion, INTL_IDNA_VARIANT_UTS46 has to be given as $variant: idn_to_utf8('xn--sorra-lqa.it', 0, INTL_IDNA_VARIANT_UTS46);