Are IDN domain names case-sensitive?

我只是一个虾纸丫 提交于 2019-12-03 02:15:57

For old-fashioned ASCII-based domain names, Yes, domain names have been and continue to be case-insensitive.

For example, all of these represent the same domain:

  • example.com
  • Example.com
  • EXAMPLE.COM
  • EXampLE.com

In modern DNS, we now have Internationalized Domain Names (IDN) which allows Unicode characters. The problem is that defining upper- and lowercase can be tricky in some languages and character sets beyond ASCII (Unicode is a superset of US-ASCII).

The intent of domain names is to be case-insensitive, but there may be complications with particular characters in particular scripts of particular human languages. So there is no simple YES or NO answer to your question.

If using non-ASCII domain names, you should read:

WRONG: URLs are still case insensitive, even for IDN.


CORRECTION:

The question was about IDN: "Are IDN domain names case-sensitive?"

My initial answer is wrong, and does not clearly answer the question. It brings URLs into the mix.

The domain name part (IDN) of a URL is case-insensitive.

The other elements might be case-insensitive or not. It depends on many things, and in general is not predictable.

For instance the path part would normally depend on the OS or even the file system hosting the site (on MacOS you can format the drive as case insensitive or not) But these days you can have some of these paths "hooked" to answer RESTfull APIs. So it depends on how the "hook" is done.

Similar for other elements (user, password, parameters, parameter values)

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