UrlEncode and Urldecoder effects

Source: Internet
Author: User
Tags urlencode

First, the basic principle

For the URL passed to the background, some of the characters will be encoded, the following is my Baidu to some of the information.

When a form in a Web page is submitted using the Post method, the type of data content is application/x-www-form-urlencoded, which is:

1. The characters "a"-"Z", "a"-"Z", "0"-"9", ".", "-", "*", and "_" are not encoded;

2. Convert the space to a plus sign (+);

3. Convert non-textual content into "%xy" form, XY is a two-bit 16 binary value;

4. Place the & symbol between each name=value pair.

The Urlencoder class contains static methods that convert a string to the application/x-www-form-urlencoded MIME format.

Ii. description

So UrlEncode is to encode the special part of the URL. Urldecoder is the decoding of special parts.

UrlEncode and Urldecoder effects

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.