http://www.perlmonks.org?node_id=728675


in reply to Dealing with binary data and WWW::Mechanize and encoding stuff

Wide character - memGzip, could try decoded_content

Replies are listed 'Best First'.
Re^2: Dealing with binary data and WWW::Mechanize and encoding stuff
by friedo (Prior) on Dec 07, 2008 at 15:11 UTC

    That was the clue I needed. The underlying content method from HTTP::Message will get me the original unmolested byte string from the server. So all I have to do is use $mech->response->content instead of $mech->content, and it works perfectly.

    Thanks!