Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the legal and illegal characters in URL/Link?

Tags:

url

hyperlink

web

What happens if there is a illegal character? Does the URL fix it self by encoding the illegal characters into something else?

like image 580
Internial Avatar asked Aug 30 '25 18:08

Internial


1 Answers

As explained here

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=. Any other character needs to be encoded with the percent-encoding (%hh). Each part of the URI has further restrictions about what characters need to be represented by an percent-encoded word.

like image 166
Anirudh Avatar answered Sep 02 '25 09:09

Anirudh