> None of the editors I have (BBEdit, vim, or TextEdit) will display the
> "control characters" when embedded in a file. BBEdit has 'display
> invisibles' but it doesn't tell you they're 0x00 characters. They're
> mapped to nondisplayable characters. The only way I know to show the
> true stream of chacters is with a binary editor like 0xED, HexEdit,
> HexFiend, or SynalyzeItFree. But you can't edit the file with those
> applications, just display the binary data.
Also worth noting that BBEdit (and its free variant TextWrangler) have a
"Hex Dump Front Document" command, so you can load the file, show
invisibles to confirm there are unprintable characters, then do a hex
dump to see what they are.
When doing a hex dump, you should select the "Front document's file"
option, because BBEdit/TextWrangler converts to Unicode when it loads
files with 8-bit data, and if you dump the "contents" you will see the
translated Unicode data, which includes a lot of zero bytes that aren't
actually in the file.
--
David Empson
dem...@actrix.gen.nz