You will encounter this problem during the development process:
If we want to send the request parameter name plus the request parameter value but the request parameter value itself includes the "/" number, such as www.abcde.com?web=http://www.baidu.com "
At this point the input is not correct.
Now try to verify the URL encoding of reserved characters under various encoding forms
This means that we should pass the arguments when this is true. For most English characters, the various encodings will not change.
However, the Chinese characters are different under various encodings.
So we need to pay attention when we pass the Chinese parameter again.
If we enter the Chinese parameter directly in the browser, the default is UTF-8 encoded.
However, if you send a GET request in a Web page (such as GBK encoded), the final parameter encoding is GBK
Once garbled, we will know how to solve it.
Learning to program should be done by hands to verify the conclusion, understanding 10 times the concept is better than to do it again.
About URL encoding