R. David Murray added the comment: as_bytes should be producing the raw utf8 bytes with cte 8bit. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19063> _______________________________________