Xiang Zhang added the comment: LGTM. Actually I just read the codecs error handles codes last day but didn't think of this. :-( ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue28510> _______________________________________