in reply to CGI won't pass to split
I haven't tried it, but maybe you want
use Encode; ... my $name = decode('UTF-8' => $cgi->param('name') );
etc... in order to properly have the parameters decoded. There's also a related CGI.pm option (pragma) "-utf8" ("This makes CGI.pm treat all parameters as UTF-8 strings."), but be sure to read the note in CGI.pm's manpage.
The -charset=>'UTF-8' you already have will only have an effect on what's being sent to the browser on output, and the use utf8; only tells Perl to interpret the script source as UTF-8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI won't pass to split
by shahriyar85 (Initiate) on Jan 19, 2009 at 19:16 UTC |