Re: Re: Help: Validate Domain Name by Regular Express

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 12:15 PM +0100 1/9/11, Per Jessen wrote:
Tamara Temple wrote:

 > I'm wondering what mods to make for this now that unicode chars are
 allowed in domain names....

You're talking about IDNs ?  The actual domain name is still US-ASCII,
only when you decode punycode do you get UTF8 characters.

Per Jessen, Zürich (10.1°C)


Unfortunately, you are correct.

It was never the intention of the IDNS WG for the end-user to see PUNYCODE, but rather that all IDNS be seen by the end-user as actual Unicode code points (Unicode characters). The only browser that currently supports this is Safari.

For example --

http://xn--19g.com

-- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as ?.com

The IDNS works, but for fear of homographic attacks IE (and other browsers) will not show the IDNS correctly.

Cheers,

tedd

--
-------
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux