remiah has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks.
Today I uploaded my perl program to my server. My local perl is 5.12.2 and server'perl is 5.8.8. And I met strange problem. LWP::Simple'get() function gives me decoded utf8 characters with my 5.12.2 local machine. But 5.8.8 machine gives me not decoded utf8 bytes. Each version of LWP::Simple is 5.835(local) and 5.810(server).
In get() function, LWP::Simple calls HTTP::Response's "decoded_content" method. Document of CPAN says
"This will return the content after any Content-Encoding and charsets have been decoded."
I guess there was some change for HTTP::Response's decoded _content. Does anyone met the same situation? Maybe,
will solve my problem, but I would like to hear from monk's opinion. regards.( I am sorry for my poor english)$html=utf8::is_utf8($html) ? $html : decode('utf8', $html);
Back to
Seekers of Perl Wisdom