Can we have a language other than english in a URL?

半世苍凉 提交于 2020-01-02 08:05:15

问题


I know the answer to my question is Yes, But I am really interested to know how its done with my application in PHP. I am basically looking for a URL that contains a hindi characters.

Thanks,


回答1:


Unfortunatly, RFC2396 says you're not allowed to use any non alphanumeric characters. You can however encode them, but that defeats your point of having nicely 'speaking urls'.




回答2:


ICANN (The Internet Corporation for Assigned Names and Numbers) exists with the sole responsibility of managing top-level domain name systems and IP addresses

a translation system needs to be created that allows multiple scripts to be converted to the right address. ICANN is also to decide on the degree of freedom given on global top-level domain names. Right now, web addresses can only be chosen from 21 suffixes such as .net or .com. If this changes companies and individuals can have unlimited choices such .indian / .delhi or maybe an anshul.jain



来源:https://stackoverflow.com/questions/6515781/can-we-have-a-language-other-than-english-in-a-url

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