1 package TestAppEncoding::Controller::Root;
4 use base 'Catalyst::Controller';
7 __PACKAGE__->config->{namespace} = '';
12 open(my $fh, '<', $c->path_to('..', '..', 'catalyst_130pix.gif')) or die $!;
14 local $/ = undef; <$fh>;
18 sub binary_utf8 : Local {
20 $c->forward('binary');
21 my $str = $c->res->body;
23 ok utf8::is_utf8($str), 'Body is variable width encoded string';