[Problem] accumulation LookupError: unknown error handler name 'surrogateescape'

wrong description

Recently met doing a production testing tool when an error: error screenshots below
Here Insert Picture Description
this error: and there is no law, the primaries are more random, should this version from previous versions which do upgrade, not before error occurred, look for this error message online:

sys.setdefaultencoding (name) is used to set the current default character encoding, if the name and any encoding available does not match, throw LookupError, this function will only be sitecustomize module using the site, once the site do not use the module, he will be removed from the sys module

Since it is a problem that appears is stdout, I first of all shielded output ---- he promised "not valid
after removing debugging information to communicate with colleagues there would be no mistake: this is due to confirm the basic point 2 in the language encoding format due to conflict problem.

Released five original articles · won praise 0 · Views 151

Guess you like

Origin blog.csdn.net/weixin_41892612/article/details/105077085