I have a file with contents looking like PK\u0003\u0004\u0014\u0000\u0006\u0000\b\u0000\u0000\u0000!\u0000À¸<91><91>¢\u0001
.
However, I have a different version of the same file looking like PK^C^D^T^@^F^@^H^@^@^@!^@À¸<91><91>¢^A
I would like to "interpret" the first file, so that hex codes (6 characters each, including \u
) get resolved to actual characters. However, as you see, the file is not really binary, but rather contains text representation of some hex codes (as well as some interpreted ones, like !
etc.)
I thought about using xxd -r
, with just a few obviously wrong characters as a result. How can I convert my 1st file so that it resembles the 2nd version of it?
.zip
extension and then try to open it.\u0000
rather than0
), just changing the extension does not work.À,<91>
etc? Are those straight UTF8 characters? (And why would anyone write a zipfile this way?)À
is00c0
, as expected.)