Can I use all unicode characters except ascii chatacters in url such as cyrillic character, latin extension IPA extension etc.? if so, how can I use those unicode characters in the url?
Asked
Active
Viewed 1,203 times
0
-
3Possible duplicate of [Can urls have UTF-8 characters?](https://stackoverflow.com/questions/22357509/can-urls-have-utf-8-characters) – LW001 Sep 28 '17 at 18:47
-
1URIs/URLs can only have ASCII characters in them. Non-ASCII characters (and reserved ASCII characters) *must* be encoded to ASCII (using IDN in the hostname, or percent-encoding in the rest). In the case of percent-encoding, there is no standard for which charset to actually use, that is up to the webserver to decide. UTF-8 is most commonly used, but I have seen other charsets being used, too. IRIs, on the other hand, support non-encoded Unicode characters, and dictate UTF-8 when converting to URIs/URLs – Remy Lebeau Sep 30 '17 at 01:53
1 Answers
2
As Remy Lebeau said in comments:
URIs/URLs can only have ASCII characters in them. Non-ASCII characters (and reserved ASCII characters) must be encoded to ASCII (using IDN in the hostname, or percent-encoding in the rest). In the case of percent-encoding, there is no standard for which charset to actually use, that is up to the webserver to decide. UTF-8 is most commonly used, but I have seen other charsets being used, too. IRIs, on the other hand, support non-encoded Unicode characters, and dictate UTF-8 when converting to URIs/URLs

Moham
- 21
- 4