use strict;
use warnings;
-
use base qw/ Catalyst::Controller /;
use Cwd;
$c->res->body('foo');
}
+sub redirect_to_utf8_upgraded_string {
+ my($self, $c) = @_;
+ my $where = $c->uri_for('hello')->stringify;
+ utf8::upgrade($where);
+ $c->res->redirect($where);
+}
+
1;