I am interested in knowing why ‘%20’ is used as a space in URLs, particularly why %20 was used and why we even need it in the first place.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s called percent encoding. Some characters can’t be in a URI (for example
#, as it denotes the URL fragment), so they are represented with characters that can be (#becomes%23)Here’s an excerpt from that same article:
The space character’s character code is
32:Which is
20in base-16:Tack a percent sign in front of it and you get
%20.