in reply to Utf8 experts help!

It most likely isn't utf8, it is probably utf16~ or utf32~, so decoding it as utf8 is an error. Examine the bytes, hexdump/od -tacx1, Encode::Guess

Replies are listed 'Best First'.
Re^2: Utf8 experts help!
by chessgui (Scribe) on Jan 24, 2012 at 10:05 UTC
    This code does the same as a single utf8::decode:

    use Encode::Guess; sub my_decode { my $what=shift; #utf8::decode($what);utf8::decode($what); my $enc = guess_encoding($what); if(ref($enc)) { $what = decode($enc->name, $what); } return $what; }
Re^2: Utf8 experts help!
by chessgui (Scribe) on Jan 24, 2012 at 09:46 UTC
    The response header (Content-Type: text/html; charset=utf-8) and the HTML code itself (<meta charset="utf-8" />) says explicitly that it is utf8. Why would utf8::decode work applied twice if it were not utf8?