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 <rep...@bugs.python.org> <http://bugs.python.org/issue16323> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com