URL中是否允许输入中文字符? [英] Are chinese characters allowed entered in URLs?

查看:457
本文介绍了URL中是否允许输入中文字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否允许在URL中输入汉字?

Are chinese characters allowed to be entered in URLs?

经过测试,可以在URL中输入汉字,并且汉字也将转换为punycode并发送请求,并到达相关页面.

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?

推荐答案

Punycode可以在不支持的软件中使用非拉丁脚本.因此,尽管我喜欢我的网站 http://见.香港/我可以输入 http://xn--nw2a.xn--j6w193g/如果我无法输入Unicode原始格式.

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.

某些网站开发人员过度防御性地进行编程,例如,对于Google Apps,由于激进的白名单尚未按照ICANN标准进行更新,因此您根本无法使用punycode域.

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.

这篇关于URL中是否允许输入中文字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆