What encoding it uses is not really interesting, because character encodings are used for text data-that is, data that represents something intelligible to a human-and not binary data. Vim, as well as many other text editors, will open binary files in a mode that uses a single-byte encoding (in Vim, usually latin1). ![]() For example, if I'm editing a data file to change a value from 1234 to 5678, it's much easier to search for the bytes 04 d2 or d2 04 and then swap them to 16 2e or 2e 16 than it is to find some series of bits in a stream which isn't byte aligned. ![]() If I want to edit a binary file to contain a different value, it is more useful to me to edit one byte at a time rather than to edit multiple bits at a time. In most cases, text editors (or binary file editors) are designed to show bytes because they are the unit of storage. In fact, any text file will also be stored this way. ![]() On all modern operating systems, any binary file is going to be stored and handled as a series of bytes (that is, 8-bit groups).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |