Have you tried this with the current version of WWW::Mechanize? IIRC recently there has been work done regarding how it determines encoding.
Martin
| [reply] |
WWW::Mechanize uses HTML::Form internally. Take a look at the documentation for that module's parse() and accept_charset() methods.
| [reply] [d/l] [select] |
Thanks for the replies. I crashed pretty quick last night.
>>marto: I've tried all kinds of versions. There's nothing about charset or encoding in 1.60's documentation.
>> wizard: Thanks. I've looked around a bit but haven't been able to come up with anything. Searching around, I found a rather lengthy post here:
http://code.google.com/p/www-mechanize/issues/detail?id=61&can=1&q=charset
.
I also installed LWP and whatnot specifically, which seems to have broken it further. I get this now when using Mechanize-1.34:
Can't locate object method "decoded_content" via package "HTML::Form" at /usr/lib/perl5/site_perl/5.8.8/HTML/Form.pm line 145.
1.60 doesn't give this error, but decodes everything to utf8 specifically. :(
| [reply] |
"There's nothing about charset or encoding in 1.60's documentation" Read Changes, back to the notes for version 1.56.
| [reply] |
Do you have a small working example I can play with?
| [reply] |