Catalyst-Plugin-Unicode
view release on metacpan or search on metacpan
t/lib/TestApp/Controller/Root.pm view on Meta::CPAN
use base 'Catalyst::Controller';
# your actions replace this one
sub main :Path {
$_[1]->res->body('<h1>It works</h1>')
}
sub unicode :Local {
my ($self, $c) = @_;
my $data = "ã»ã"; # hoge!
$c->response->body($data); # should be decoded
}
sub not_unicode :Local {
my ($self, $c) = @_;
my $data = "\x{1234}\x{5678}";
utf8::encode($data); # DO NOT WANT unicode
$c->response->body($data); # just some octets
}
sub file :Local {
( run in 0.583 second using v1.01-cache-2.11-cpan-26ccb49234f )