I have a source text and its supposedly-zlib deflated embedding (and \ escaping) within another text file. I do not have docs on its encoding other than it uses zlib with nominal escaping for \0, \t, \n, \r, quote, etc.
The unescaped data has:
first four bytes: 1A 9B 02 00 last four bytes: 76 18 23 82
which inflate complains about having an invalid header.
When I deflate/inflate the matching source text myself using 1.2.5, I get:
first four bytes: 78 9C ED 7D
Can someone suggest what compression is being used given the header bytes? I haven't found any magic numbers or header formula that actually uses those.
EDIT: Here are the relevant files...
codedreadbase.cohdemo is the source text file with the escaped embedded section following the BASE verb. Escapes are:
\n = (newline) \r = (return) \0 = 0 (NULL) \t = tab \q = " \s = ' \d = $ \p = %
codedreadbase.deflated is what I am passing to zlib inflateInit/inflate*/inflateEnd after unescpaing the above within the double quotes.
- codedreadbase.txt is the original text of the embedded section.