Re: mod_perl and utf8 and CGI->param

Peng Yonghua <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
good patch. thanks for sharing.

On 2017/6/1  23:34, Randal L. Schwartz wrote:
> I realized that I never posted my ultimate solution.  I monkey patch
> CGI.pm:
> 
> require CGI;
> {
>    my $orig = \&CGI::param;
>    no warnings 'redefine';
>    *CGI::param = sub {
>      $CGI::LIST_CONTEXT_WARN = 0; # workaround for backward compatibility
>      $CGI::PARAM_UTF8 = 1;
>      goto &$orig;
>    };
> }
> 
> And this has been working just fine for both CGI and mod_perl.  Just for the
> record.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.