Browser Support Unicode URL

独自空忆成欢 提交于 2019-12-31 02:09:19

问题


What is the browser support for having images, links, scripts... containing unicode characters in the domain name?

For example does IE5+, chrome, firefox, opera, safari, and mobile browsers (Dolfin, Blackberry Webkit, MicroB, Phantom, IEMobile...) all support the following statement?

<script src=☺.com/s.js></script>

Just attempting to understand the portability of the above statement.


回答1:


Wikipedia's Internationalized domain name article says this:

Mozilla 1.4, Netscape 7.1, Opera 7.11 were among the first applications to support IDNA. A browser plugin is available for Internet Explorer 6 to provide IDN support. Internet Explorer 7.0[13][14] and Windows Vista's URL APIs provide native support for IDN.[15]

Considering the age of those browsers, I'd guess that any newer browser, including any WebKit-based browser, supports IDNs.



来源:https://stackoverflow.com/questions/7962110/browser-support-unicode-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!