Sometimes I want to intentionally create a file with invalid UTF8 bytes.
It would be handy to have a little tool that allows me to insert raw bytes into the document.
- Imagine a new entry at Menu path Edit -> Insert -> Bytes
- Click Bytes
- A small dialog is opened over the document window.
The dialog has
- button Insert
- button Close
- a choice of LE (Little Endian) or BE (Big Endian)
- a small text field with label Byte where I can enter a string like hexadecimal
0xAF or decimal 175.
The text field should allow up to four bytes.
- a small preview window of the byte rendered (shows
� for bytes that do not render), preview rendering for UTF8 UTF16 UTF32
- if it's a valid UTF8 glyph then the name of the glyph
- same for UTF16
- same for UTF32
- I click Insert in the dialog.
The byte is inserted at the document cursor and the cursor is advanced.
The small dialog handles translating the string from either hexadecimal or decimal.
- I can continue to insert more bytes or click Close.
This would be very cool!
Currently, I have to use an entirely separate editor to accomplish this.
Sometimes I want to intentionally create a file with invalid UTF8 bytes.
It would be handy to have a little tool that allows me to insert raw bytes into the document.
The dialog has
0xAFor decimal175.The text field should allow up to four bytes.
�for bytes that do not render), preview rendering for UTF8 UTF16 UTF32The byte is inserted at the document cursor and the cursor is advanced.
The small dialog handles translating the string from either hexadecimal or decimal.
This would be very cool!
Currently, I have to use an entirely separate editor to accomplish this.