Page 2 of 2

Re: HxD: Custom Character Encoding for Text

Posted: 03 Sep 2024 14:54
by Liggliluff
I found this post from 2008 by looking for if HxD supported custom encodings, which is a really important feature. However, there doesn't seem to be any other information about this and I can't find any guides to make custom encodings, so I can only assume it's not implemented.

I'm trying to look for a phrase of a file, in this case "Try Again?"
The encoding is:

Code: Select all

 !"%&'(),-./0123456789:;?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz¡©¿ÁÄÇÈÉÌÍÑÓÖÚÜßàáâäçèéêìíîïñòóôöùúûü
This means I have to manually convert this, which I can do with line numbers:
44 68 75 00 25 57 51 59 64 24
Then I have to convert this to hex:
2C 44 4B 00 19 39 33 3B 40 18
I am able to find this text, rendered as the following by HxD:

Code: Select all

,DK..93;@.
But it would be so much more useful if I could have it render by a custom table instead. This also means I could search for the text as well without having to go through the tedious work of converting it to numbers and then to hex. It also makes it easier for me to see where the text starts and ends as well.

Being able to define an encoding in a file, and importing that file in the options, would be very useful.

Re: HxD: Custom Character Encoding for Text

Posted: 05 Sep 2024 18:06
by Vag.GreekRoms
Unfortunately it's not implemented in HxD yet.
If it's one off, you can search for the byte values, like you said. If you need to do that often, I suggest to use a hex editor that supports tables. I use Thingy32 (https://www.romhacking.net/utilities/570/), but there are others. They are not as good as HxD, but they can do that one thing.
As for Thingy32, it works a little differently. To alter something, you must press space at the beginning and at the end of that phrase or byte sequence. Then you type normally, or you enter byte values after you press ` (the key left to 1). When you type byte values, A-E can be small or capital letters, but f can't be capital, that's a bug. You can search, you can copy text, but you can't move bytes or phrases around, and you can't paste.
I'm hoping HxD will support this feature!