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

From: Costello, Roger L. via Unicode <unicode_at_unicode.org>
Date: Fri, 21 Feb 2020 12:21:34 +0000

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
Received on Fri Feb 21 2020 - 06:22:20 CST

This archive was generated by hypermail 2.2.0 : Fri Feb 21 2020 - 06:22:21 CST