1 package TestAppWithoutUnicode::Controller::Root;
4 BEGIN { extends 'Catalyst::Controller' }
5 use Encode qw(encode_utf8 decode_utf8);
7 __PACKAGE__->config( namespace => q{} );
9 sub default : Private {
10 my ( $self, $c ) = @_;
11 my $param = decode_utf8($c->request->parameters->{'myparam'});
12 $c->response->body( encode_utf8($param) );
15 __PACKAGE__->meta->make_immutable;