in reply to CGI.pm: automatically decode param()
Somewhere between 3.15 and 3.29 there was utf8 encoding added. I'm not sure if it will solve your problem(s) but maybe upgrading helps. The following was added to the param() method:
my $charset = $self->charset || ''; my $utf8 = $charset eq 'utf-8'; if ($utf8) { eval "require Encode; 1;" if $utf8 && !Encode->can('decode'); # +bring in these functions return wantarray ? map {Encode::decode(utf8=>$_) } @{$self->{$na +me}} : Encode::decode(utf8=>$self->{$name}->[0]); } else { return wantarray ? @{$self->{$name}} : $self->{$name}->[0]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI.pm: automatically decode param()
by moritz (Cardinal) on Sep 03, 2007 at 09:38 UTC | |
by Corion (Patriarch) on Sep 03, 2007 at 10:19 UTC | |
by moritz (Cardinal) on Sep 03, 2007 at 10:51 UTC | |
by rhesa (Vicar) on Sep 04, 2007 at 12:02 UTC |