Perl CGI.pm and Unicode

Because I always forget how to handle Unicode input/output in Perl .. a few notes to help jog my memory for next time: Remember to use both CGI.pm and Encode.pm: use CGI qw(:standard); use Encode qw(decode encode); Handle webform input with Unicode characters: my $input = decode(‘utf8’, param(‘input’)); Prepare scalar variables to cope with Unicode … Read more