STINNER Victor <victor.stin...@gmail.com> added the comment: Can't we check if the encoding exists using codecs.lookup() before using it to emit a better error message?
Look at initfsencoding() in the C code which implements such check. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32456> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com