Propably you exchange encode and decode. Or the decode function call is not needed in your case.use Encode; my $str = "hi"; # hi is a notmal string. $str .= chr(0x1234); # str is now a utf8 string Encode::decode_utf8($str, 1); # here you get the error.
In reply to Re^3: utf8 && XML::Simple
by borisz
in thread utf8 && XML::Simple
by zakzebrowski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |