[docs] [issue16323] Wrong C API documentation for locale encoding

STINNER Victor report at bugs.python.org
Sat Oct 27 21:06:53 CEST 2012

STINNER Victor added the comment:

"Encode a Unicode object to the current locale encoding. The encoder is strict if *errors* is equal to ``strict``, otherwise it uses the ``'surrogateescape'`` error handler (:pep:`383`)."

Hum, this is not correct. There are three valid values:
 - NULL: strict
 - "strict": strict
 - "surrogateescape": use PEP 383


Python tracker <report at bugs.python.org>

More information about the docs mailing list