Yang Zhang <yaaang at gmail.com> added the comment: To answer my own question: specify UTF-16BE or UTF-16LE ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue7145> _______________________________________