Reserved and unsafe characters in URLs

Source: Internet
Author: User
Reserved and unsafe characters in URLs

If you need to use a character in a URL that does not belong to this character set, you will encode the character with a special symbol.

For example: the most commonly used spaces are indicated by%20, e.g. http://www.google.com/new%20171130.html

In addition to those characters that cannot be displayed, you need to encode those reserved (reserved) characters and unsafe (unsafe) characters in the URL.

The so-called reserved characters are those characters that have a particular meaning in the URL. Unsafe characters are characters that have no special meaning in the URL, but may have special meaning in the context in which the URL is located. For example, double quotation marks ("")

In general, if you have questions about whether a character can be used in a URL, you should always use the encoding of that character. All characters except letters, numbers, and characters $-_.+!* ' () should be encoded;

Reserved and unsafe characters in URLs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.