What exactly causes binary file “gibberish”?

后端 未结 7 1112
醉话见心
醉话见心 2020-12-30 02:11

I haven\'t found an answer to this particular question; perhaps there isn\'t one. But I\'ve been wondering for a while about it.

What exactly causes a binary file to

相关标签:
7条回答
  • 2020-12-30 02:45
    • Are the binary values of the file trying to be converted into ASCII?

    Yes, that's exactly what's happening. Typically, the binary values of the file also include ASCII control characters that aren't printable, resulting in even more bizarre display in a typical text editor.

    • Is it possible to convert the view to display raw binary values, i.e. to show the 1s and 0s that make up the file?

    It depends on your editor. What you want is a "hex editor", rather than a normal text editor. This will show you the raw contents of the file (typically in hexadecimal rather than binary, since the zeros and ones would take up a lot of space and be harder to read).

    • Finally, is there a way to determine what program will properly open a data file?

    There is a Linux command-line program called "file" that will attempt to analyze the file (typically looking for common header patterns) and tell you what sort of file it is (for example text, or audio, or video, or XML, etc). I'm not sure if there is an equivalent program for Windows. Of course, the output of this program is just a guess, but it can be very useful when you don't know what the format of a file is.

    0 讨论(0)
提交回复
热议问题