On Sat, Oct 24, 2009 at 1:26 PM, Bernhard Graf <cataly...@augensalat.de>wrote:
> These plugins hook into prepare_parameters() to decode data. > > Why does it leave query_- and body_parameters untouched? > Always seemed like a bug to me. http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg02350.html http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg05312.html http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg04321.html I wonder about something like this, although might be cases where there's something in there that should not be decoded. after 'prepare_body_parameters' => sub { my $c = shift; my $v = Data::Visitor::Callback->new( ignore_return_values => 1, value => sub { $_ = decode_utf8( $_, $CHECK ) unless Encode::is_utf8( $_ ); }, ); $v->visit( $c->req->body_parameters ); return; }; Although I have cryptic notes elsewhere where I had problems with Data::Visitor. Hum, should have taken better notes. -- Bill Moseley mose...@hank.org
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/