0

URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.

Why URLs contain the only ASCII set, Why URLs should be encoded ?

1

2 Answers 2

2

Why URLs contain the only ASCII set?

Otherwise, you would need a different naming standard for systems that aren't 8-bit clean. At the time the URL standard was developed, that wasn't terribly uncommon. Remember, URLs are not specific to the Internet. They're supposed to be a universal naming standard.

Why URLs should be encoded ?

Otherwise you won't get the resource you're looking for. If you decide that "no" means yes and "yes" means no, nobody will understand what you're talking about. That's why we have standards.

2

URLs are limited to ASCII because that is how they were defined in the RFC. While the original RFC has been updated by others over time, section 2.2 of RFC 1738 is a good place to start for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.