#How do I copy ASCII just like displayed?

1 messages ยท Page 1 of 1 (latest)

maiden aspen
#

I'm using Edit -> Copy As -> ASCII String, but when I paste to any editor, some of the symbols are different from how they're displayed in ImHex.

Edit: Actually, it just copies the first ~4 x 16 bytes, up to "lastFrame", and the rest is not copied, even though I selected it, just like in the screenshot.

patent wagon
#

your selection contains invalid ascii characters that ImHex displays as . but the text editor displays as an error char. Your selection also has zeros and for ascii strings zero is the string terminator.

maiden aspen
#

so i can copy ranges with terminators and ImHex filters them out so i get the whole selection?

patent wagon
#

I don't think you can copy as string avoiding zero detection for end. I recommend using the find view to look for strings and it may be easier to copy from the results found there

#

Do note that the string find results allow you to select multiple rows that can be copied in one step

#

what im not sure is how the string finder will react to the invalid ascii chars

maiden aspen
#

i'll try it out. thank you for all the info ๐Ÿ™

patent wagon
#

the string finder lets you choose among several encodings if you are having trouble with the default ascii

#

my guess frim the inalid chars whown in your screen post is that the strings found will break at those chars which should be ok so you can still select the entire group of strings together

#

no, sorry, it doesnt seem to work either

#

If you select multiple rows and copy the value, only the first one is pasted which I think is a bug

#

I see, the selection seems to be unrelated to the context menu copy value entry and it is used for the export button probably