nikolay has asked for the wisdom of the Perl Monks concerning the following question:
I fail to receive HTML form data (text fields and uploaded files) w/ my PERL script, w/ the following error messages:
"Can't decode ill-formed UTF-8 octet sequence <FF> at /usr/share/perl5/CGI.pm line 1116."
The PERL code is:
#!/usr/bin/perl -T use warnings; use strict; use CGI; use CGI::Carp qw ( fatalsToBrowser ); use utf8::all; use Encode qw/ decode /; my $a=undef; my $b=undef; $a=CGI->new; $b=$a->param( 'tekst' ); $b=decode( 'UTF-8', $b ); exit 0;
How do i fix this?
|
|---|