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.