|
(The following is just my understanding. Don't blame me for being wrong, just give you some reference. If there is an error, don't say that I am misleading, if you have any doubt, you can try it out.)
There may be two parts in the http protocol: encoding and URL and FORM Data.
The former will appear in the GET command, and the latter will appear in the POST command.
I remember reading a CONTENT_LENGTH when processing the POST data, and then I could read the data of that length. According to this point of view, the data does not need additional encoding. In other words, the HTTP protocol itself does not encode the data at this time. What is the original encoding is what is transmitted to the server.
You can analyze the obtained POST data. According to the encoding characteristics of GB23112 and Unicode, you can basically know which Chinese encoding is used. |
|