http://www.perlmonks.org?node_id=536581


in reply to Malformed UTF-8 character

You probably have some strings with high-bits set in them. Find out what their encoding is and then apply
use Encode; my $perl_string = decode(<encoding>, $original_string);
where <encoding> can be "iso-8859-1", "utf8" of one of the other encodings available...see Encode help.
Then you can apply s//

Regards.

Replies are listed 'Best First'.
Re^2: Malformed UTF-8 character
by jeanluca (Deacon) on Mar 14, 2006 at 14:58 UTC
    OK, thanks. Do you know some ulrs where I can read more about this (iso-88..., utf8) so I will get a better understing of what it means ?

    Luca