That is what headers are for. See HTTP::Response->decoded_content
In reply to Re: LWP::Curl and character encoding by Anonymous Monk in thread LWP::Curl and character encoding by perl-diddler