Patrik Dufresne added the comment: It's a bit tricky, but with help of surrogateescape I get the expected result.
I'm closing this bug. Thanks ---------- status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25997> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com