Are chinese characters allowed entered in URLs?

自作多情 提交于 2019-11-30 04:50:44

问题


Are chinese characters allowed to be entered in URLs?

As tested, chinese characters are able to be entered in URLs, and it will convert to punycode as well and send out the request as well too, and reach to the related page.

But for currently, is there anybody else will do validation for website URLs to be allowed chinese character as well?


回答1:


Punycode exists to be able to use non-Latin scripts in non-supported software. So whilst I like my site http://見.香港/ I can enter http://xn--nw2a.xn--j6w193g/ if I cannot enter the Unicode original form.

Some website developers program overly defensively, for example with Google Apps you cannot use punycode domains at all due to aggressive white listing that has not updated with ICANN standards.




回答2:


All non-ascii characters that presents in domain name will (should) be converted to puny-code. It is browser's business to display it as a hieroglyphs



来源:https://stackoverflow.com/questions/7184802/are-chinese-characters-allowed-entered-in-urls

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