The URL cannot display some special symbols, and this time you use coding. The encoded format is: a percent sign, followed by the corresponding character's ASCII (16) code value. For example, the encoding value of the space is "% 20". (ASCII reference)
Special characters in the URL
Special meaning hexadecimal value
1. Represents space (no space in URL)% 20% 20
2. / Separate the directory and sub-directory% 2F
3. • Separate the actual URL and parameter% 3F
4.% Special Character% 25
5. # 表示 书签% 23
6. Sneezer% 26 between the parameters specified in & URL
Coding and decoding functions of URL in Java
Java.net.urlencoder.Encode (string s) and java.net.urldecoder.decode (String s);
Coding and decoding functions of URL in JavaScript
Escape (string s) and unescape (string s);