Why do binary files contain text but text files don't contain binary?

Costello, Roger L. via Unicode unicode at unicode.org
Fri Feb 21 06:21:34 CST 2020


Hi Folks,

There are binary files and there are text files.

Binary files often contain portions that are text. For example, the start of Windows executable files is the text MZ.

To the best of my knowledge, text files never contain binary, i.e., bytes that cannot be interpreted as characters. (Of course, text files may contain a text-encoding of binary, such as base64-encoded text.)

Why the asymmetry?

/Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unicode.org/pipermail/unicode/attachments/20200221/d85d63c2/attachment.html>


More information about the Unicode mailing list