Home > front end > Python cgi. Accept the json Chinese character data. The last Chinese character encoding.
Python cgi. Accept the json Chinese character data. The last Chinese character encoding.
Time:10-03
Drunk drunk, With CGI into, but at the time of analytical Chinese characters, Finally appeared in the coding of strange things, and also can't again decoding encoding (because the code is wrong) Is my custom to decode, \ u534e \ u590f But to get the json data into other,
For help, how to solve, you may be able to see the normal output operations, but later I must carry on the database operation, This character can't do, 'utf-8' codec can 't encode characters in the position of 40 and 41: surrogates not allowed this is wrong information,
The incoming Chinese characters as database operation field, and what to do