If the site sends the proper HTTP headers, ->decoded_content should do that for you already. But often, the headers and the <meta> tag don't correspond to the actual content encoding...
See HTTP::Message for discussion of ->decoded_content.
In reply to Re^2: UTF8 issue when getting website via LWP::UserAgent in Perl
by Corion
in thread UTF8 issue when getting website via LWP::UserAgent in Perl
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |