[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

Serhiy Storchaka report at bugs.python.org
Mon May 14 18:30:01 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Is 'replace' the good default value? 'strict' is the default value for most encoding/decoding operations. 'surrogateescape' is used if the failure and the loss of information are not desirable (like in filenames decoding). 'backslashreplace' is good if we want to avoid a failure, but want to expose undecodable bytes in human-readable form.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33497>
_______________________________________


More information about the Python-bugs-list mailing list