Are chinese characters allowed entered in URLs?

2019-02-13 22:58发布

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?

标签: php url cjk
2条回答
Viruses.
2楼-- · 2019-02-13 23:34

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

查看更多
看我几分像从前
3楼-- · 2019-02-13 23:43

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.

查看更多
登录 后发表回答