in reply to Problem saving webpage content into a file
The headers for the URL say
Encoding: gzip
So, for the short term fix, you will have to use gunzip to uncompress the saved data.
In the long run, you will have to learn HTTP and learn how the headers and the content interact. Also, maybe using the ->content method of WWW::Mechanize instead of saving the raw, undecoded content directly to a file helps.
|
|---|