URL encoding is a format that a browser uses to package form input. The browser takes all of the name and its values from the form, encodes them with the Name/value parameter (removing the characters that cannot be transferred, ranking the data, and so on) as part of the URL or to the server as a separate piece. In either case, the form input format on the server side looks like this:
Thename=ichabod+crane&gender=male&status=missing&;headless=yes
URL encoding follows the following rules: Each pair of name/value is separated by a &; character, and each pair of name/value from the form is separated by the = character. If the user does not enter a value for this name, then the name still appears, but no value. Any special characters (that is, those that are not simple seven-bit ASCII, such as kanji) will be encoded in hexadecimal with the percentile%, and of course include such special characters as =,&;, and%. In fact, URL encoding is a character ASCII hexadecimal. However, there is a slight change, which needs to be preceded by "%". For example "\", its ASCII code is 92,92 hexadecimal is 5c, so "\" URL encoding is%5c. So what is the URL code for Chinese characters? Very simple, see example: "Hu" ASCII code is-17670, hexadecimal is bafa,url encoding is "%BA%FA".
// URL Decoding Example: QString oldstring == Qstring::fromutf8 (qbytearray::frompercentencoding (Oldstring.toutf8 ()));
Introduction to URL encoding