STINNER Victor added the comment: For Python, the encoder is only used when you pass a Unicode string. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22127> _______________________________________