Why are you urlencode?

Source: Internet
Author: User

Why are you urlencode?

1. To get the value normally

Meaning of character special characters URL encoding

# used to flag a specific document location%23

% to encode special characters%25

& separating different values of variables against%26

+ Represents a space in the value of a variable%2b

\ indicates directory path%2f

= used to connect keys and values%3d

? Represents the start of a query string%3f

When a URL contains some of the characters from the list above, it is not possible to receive the value accurately.


2. If you want to pass a parameter that you do not want to see at a glance, you can also UrlEncode, the URL will become a long long string after encoding.

As for UrlDecode, there's nothing to say.

is to decode the Urlecode encoded URL string into its original URL.

You encode.

Definitely need to reverse the operation, namely decode

NOTE:. NET below is used Httputility.urlencode () and Httputility.urldecode ()

To implement the encode and decode operations of the URL.

Why are you urlencode?

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.