How do URLs work in other countries? Let's say India or China that use non A-Z characters.
Do they use English terms in the URL? Or can they write characters in urls like:
सच्चाई.html
It depends on the context and characters used.
Domain names
Domain names that use non-ASCII characters are known as Internationalized Domain Names (IDNs). They are encoded using Punycode into the ASCII character set. This is to maintain compatibility with older networking software that doesn't understand Unicode.
For example, I have registered a domain name with a letter containing an 'umlaut' character. Here, übersolve.com
which translates to XN--BERSOLVE-55A.COM
in DNS.
Filenames / query strings
In most cases, non-ASCII characters in filenames can be represented by Unicode.
However some characters aren't allowed in URLs at all. These are percent-encoded. For example a space character ' ' would be replaced with %20
.