in reply to Re: Re: How can I tell if a string contains binary data or plain-old text?
in thread How can I tell if a string contains binary data or plain-old text?

There's no EOF character in the ASCII set. There might be some filesystems that require files to use a particular character to signal the end of a file (for instance, the SUB (aka ^Z) character has been used), but most modern filesystems record the size of the file as meta data (often called inodes) and don't need a certain character to be present.

However, some characters in the range 00-1F are found in text files: carriage returns (^M), line feeds (^J), tabs (^I), bells (^G), form feeds (^L) and backspaces (^H). Theoretically, one could find vertical tabs (^K) in text files as well, but I've never knowingly encountered such a thing in a text file.

Abigail

  • Comment on Re: How can I tell if a string contains binary data or plain-old text?