Coding Test report

Source: Internet
Author: User

Escape (STR): Unicode (double byte storage encoding method, such as UTF-16 encoding is double byte storage) byte stream encoding, for the hexadecimal values of characters encoded less than 255 to % plus the encoded value, the characters encoded greater than 255 are converted to % u plus the hexadecimal value.

Encodeuri (STR): encode the UTF-8 byte stream of STR, convert each byte to % + byte hexadecimal

Encodeuricomponent (STR): encode the UTF-8 byte stream of STR, convert each byte to % plus byte hexadecimal

The preceding three methods do not contain uppercase letters, lowercase letters, and numbers.

When the URL address is used to transmit Chinese characters, the browser will automatically encode the Chinese characters. The encoding method is similar to the urlencoder class on the server, and the urldecoder class is used for decoding on the server.
The urlencoder class is similar to the encodeuricomponent () encoding method.

Base64 encoding is used to encode the byte stream. After decoding, the original byte stream can be restored.

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.