in reply to disable warnings: utf8 "\x8E" does not map to Unicode

Undo the double encoding:
piconv -f utf-8 -t windows-1252 < junk > junk.fixed

Replies are listed 'Best First'.
Re^2: disable warnings: utf8 "\x8E" does not map to Unicode
by Anonymous Monk on Feb 10, 2012 at 15:33 UTC

    Undo the double encoding

    That is the first thing I tried, among various permutations which didn't work, it wasn't exactly double-encoded , the clipboard may have been involved. I even tried fix_latin but nothing worked quite right, other than manual intervention.

    Anyway, I'm more interested in silencing the warning, surely it has to be possible

      When calling Encode::decode, pass Encode::FB_DEFAULT as third parameter.

      See chapter "Handling Malformed Data" in the Encode documentation.

        Huh? I'm using open my($fh), '<:encoding(UTF-8)', ...