You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I opened an EXE file in a hex editor and need to replace a string encoded in UTF-16LE with another string of the same length, using the same encoding. ImHex allows searching for UTF-16LE strings, so I was able to quickly find all the target strings.
However, I’m stuck on how to replace them. When I click on a found string in the search results and choose Replace, ImHex only offers two options: replace with ASCII or replace with HEX. The ASCII option doesn’t work for me, because I need to replace the text with a new UTF-16LE string. The HEX option technically works, but that would mean I first have to convert my UTF-16LE text to hex using some external or online converter, and then paste the resulting hex into ImHex.
Is there really no way to do this directly in ImHex without relying on external tools? I couldn’t find any option in the Data Processor to convert UTF-16LE text into hex.
More generally, it would be great if ImHex had nodes for converting between different text encodings and hex, as well as nodes for search-and-replace, so the entire process could be automated.
Am I missing something, or is this functionality simply not available in ImHex yet? You can replace UTF-16LE with hex even in simpler hex editors. I just think that if ImHex is this advanced, there should be a more convenient method.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I opened an EXE file in a hex editor and need to replace a string encoded in UTF-16LE with another string of the same length, using the same encoding. ImHex allows searching for UTF-16LE strings, so I was able to quickly find all the target strings.
However, I’m stuck on how to replace them. When I click on a found string in the search results and choose Replace, ImHex only offers two options: replace with ASCII or replace with HEX. The ASCII option doesn’t work for me, because I need to replace the text with a new UTF-16LE string. The HEX option technically works, but that would mean I first have to convert my UTF-16LE text to hex using some external or online converter, and then paste the resulting hex into ImHex.
Is there really no way to do this directly in ImHex without relying on external tools? I couldn’t find any option in the Data Processor to convert UTF-16LE text into hex.
More generally, it would be great if ImHex had nodes for converting between different text encodings and hex, as well as nodes for search-and-replace, so the entire process could be automated.
Am I missing something, or is this functionality simply not available in ImHex yet? You can replace UTF-16LE with hex even in simpler hex editors. I just think that if ImHex is this advanced, there should be a more convenient method.
Beta Was this translation helpful? Give feedback.
All reactions