![]() Hex editors are specifically designed not to make these assumptions, so to work with one you will need to know a little about the encoding of your text file. When you use a text editor which is designed to streamline the process of working with various encodings, they understand that when you specify a line break, you really want whatever a line break is for the encoding that you're working with. ![]() The encoding you're using uses line break characters equal to \r\n, AKA 0x0D0A. Technically only ASCII, which uses single-byte characters, has line feeds which are composed of \n, AKA 0x0A, and carriage returns composed of \r, AKA 0x0D. ![]() The reason for the this peculiarity (as you aptly put it) is because the text files you're working with are of an encoding that uses characters two-bytes wide. Sorry for the long comment, but you've touched on an interesting subject here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |