GNOME Bugzilla – Bug 416048
internationalized URL can't be displayed
Last modified: 2012-10-08 03:07:06 UTC
Internationalized URL can't be displayed in the address bar. Even if I manually change the network.enableIDN and disable network.standard-url.escape-utf8 internationalize URL are still escaped or punycoded. IDN Example: - http://têtu.com is displayed at http://xn--ttu-fma.com/ ; http://عربي.com as http://xn--ngbrx4e.com/ UTF8 example - http://jax.sus.mcgill.ca/~moyogo/test/t%c9%9bst is displayed instead of tɛst This is rather bad. If I want to use UTF8 in domain names or address I should be able to. Actually this should probably be enabled by default. Their are better ways to prevent spoofing, like warning or highlighting possible spoofs.
Probably a gecko bug, since the same happens in firefox.
Actually, it's because the .com addresses don't allow IDN, because the .com registry has no acceptable IDN policy [http://www.mozilla.org/projects/security/tld-idn-policy-list.html]. If you really want to display IDN in .com addresses (not recommended!), create "network.IDN.whitelist.com" as boolean in about:config and set it to 'true'.
Oh, so the IDN is working but not for .com. http://www.ñandú.cl/ is displayed properly in the address bar, nice. Thanks http://ar.wikipedia.org/wiki/الصفحة الرئيسية is another example where the address is still escaped.
About the ar.wikipedia.org/* pages, it looks like the “href” attributes are encoded strings themselves, which might cause this behaviour. Just to be sure I understand your problem correctly: you want them to be decoded automatically, even if you passed an encoded URL, or click on a link with an encoded “href”?
The domain name part is decoded if the domain is whitelisted (comment 2). The path part of the URL is however not decoded; it should be decoded. The problem is that it's not clear that we always can decode it as UTF-8 (or even as the page's encoding). Last time I checked, firefox displayed the path in the [http://jax.sus.mcgill.ca/~moyogo/test/t%c9%9bst] URL as %-encoded too...
Gecko/2008040514 Firefox/3.0b5 is displaying "http://jax.sus.mcgill.ca/~moyogo/test/tɛst" as it should. Although it still gives "http://jax.sus.mcgill.ca/~moyogo/test/t%C9%9Bst" when copied and pasted.
*** This bug has been marked as a duplicate of bug 596399 ***