jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
For some files the following exception was generated:open IN,"$_" or die "Could not read file\n" ; local $/ ; my $file = <IN> ; # read file close IN ; $file =~ s/$ARGV[1]/$ARGV[2]/g ;
Any suggestions what went wrong here ?Malformed UTF-8 character (unexpected non-continuation byte 0x20, imme +diately after start byte 0xe9) in substitution iterator at ./myscript +.pl line 23
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Malformed UTF-8 character
by Realbot (Scribe) on Mar 14, 2006 at 14:14 UTC | |
by jeanluca (Deacon) on Mar 14, 2006 at 14:58 UTC | |
by mirod (Canon) on Mar 14, 2006 at 15:51 UTC | |
by Realbot (Scribe) on Mar 14, 2006 at 17:32 UTC |