URL Encoding Explained: How to Encode Query Parameters Correctly
The broken link problem You build a search URL and it works fine in English, then breaks the moment a user types anything interesting: https://example.com/search?q=书签管理 & page=2 The server sees q=书签管理 and a stray parameter called page. The & that was supposed to be part of the query value has been read as a separator. The same thing happens with #, =, ?, + and spaces. The fix is percent-encoding (URL encoding): replace unsafe characters with % followed by two hexadecimal digits representing the UTF-8 byte. ...