in reply to Re: CGI::Application - Which is the proper way of handling and outputting utf8
in thread CGI::Application - Which is the proper way of handling and outputting utf8

I don't think this will work because QUERY_STRING is %-encoded. If C::A does not perform character decoding itself, you'll have to post-process each parameter that C::A creates with the appropirate decode (e.g. decode_utf8).
  • Comment on Re^2: CGI::Application - Which is the proper way of handling and outputting utf8
  • Download Code

Replies are listed 'Best First'.
Re^3: CGI::Application - Which is the proper way of handling and outputting utf8
by pc88mxer (Vicar) on Nov 17, 2007 at 15:11 UTC
Re^3: CGI::Application - Which is the proper way of handling and outputting utf8
by Juerd (Abbot) on Nov 17, 2007 at 21:05 UTC

    Good catch. Indeed passing a utf8_decoded query string to CGI->new makes no sense, and you need to decode each thing individually. Time for an encoding aware CGI.pm!