Subject: | HTTP::Message decoded_content() does not decode ISO-8859-1 |
The documentation for HTTP::Message states that decoded_content() decodes
the content and returns a "perl Unicode string", unless the charset is
explicitly defined to "none".
It does however also not convert any "iso-8859-1" encoded content. This
happens both with autodetected and manually specified encoding.
This means that iso-8859-1 documents will never be decoded and the
function does not return a character string. This is wrong. Code randomly
breaks, because it assumes it receives a character string, but it doesn't.
Things like uc($content) do not return the correct result.
The iso-8859-1 encoding should be removed from the hardcoded list of
encoding values for which no decoding will be done, so that this routine
returns a character string for these documents too.