Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Mechanize Returns Garbled Content

by Anonymous Monk
on Jun 29, 2011 at 04:34 UTC ( [id://911892]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Mechanize Returns Garbled Content
in thread Mechanize Returns Garbled Content

How would I tell the "bad" machine to use charset=ISO-88590-1? Do you think this would work?
$m->add_header( charset => 'ISO-8859-1' );

Replies are listed 'Best First'.
Re^5: Mechanize Returns Garbled Content
by ikegami (Patriarch) on Jun 29, 2011 at 08:02 UTC

    It's not the bad machine that uses iso-88590-1, it's Google.

    Don't know why Google doesn't use the same for both*, but that code won't help.

    Unless you can see mostly recognisable text including "<html>" in the output, this isn't related to your question.

    * — Presumably, you don't send the same request.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://911892]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found