Serhiy Storchaka added the comment: Just add the "b" prefix to literal string argument of unicode() in Python 2. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19159> _______________________________________