]> iEval git - plack-app-gruntmaster.git/commitdiff
Use utf8::decode instead of utf8::encode in Base
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 26 Mar 2014 06:10:24 +0000 (08:10 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 26 Mar 2014 06:10:24 +0000 (08:10 +0200)
lib/Gruntmaster/Page/Base.pm

index 99ca432732cfc9d8a9a27ba21e79752a01d2f726..6ed8fde6709a9f0107eb7e8e9333ade33dafd4d3 100644 (file)
@@ -88,7 +88,7 @@ sub generate{
        my $htc = HTML::Template::Compiled->new(scalarref => \$templates{$self}{$lang}, default_escape => 'HTML', use_perl => 1);
        $self->_generate($htc, $lang, @args);
        my $out = $htc->output;
-       utf8::encode($out);
+       utf8::decode($out);
        my $vary = 'Accept-Language, ' . $self->vary;
        [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1], 'Vary' => $vary, 'X-Forever' => 1, 'Cache-Control' => 'max-age=' . $self->max_age], [ $out ] ]
 }
This page took 0.033453 seconds and 4 git commands to generate.