Andrew Svetlov <andrew.svet...@gmail.com> added the comment:

This is right for 99.99% cases: utf8 doesn't encode any character except 
explicit zero with zero bytes.

UTF-16 for example encodes 'a' as b'\xff\xfea\x00'

----------
nosy: +asvetlov

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36789>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to