]> iEval git - gruntmaster-page.git/commitdiff
Fix Unicode decode/encode
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 27 Mar 2014 06:23:50 +0000 (08:23 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 27 Mar 2014 06:23:50 +0000 (08:23 +0200)
lib/Gruntmaster/Page/Base.pm

index 6ed8fde6709a9f0107eb7e8e9333ade33dafd4d3..426bde7ff6d8e1ea524a641dda351cf66a4782a1 100644 (file)
@@ -89,6 +89,8 @@ sub generate{
        $self->_generate($htc, $lang, @args);
        my $out = $htc->output;
        utf8::decode($out);
+       utf8::decode($out);
+       utf8::encode($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.021407 seconds and 4 git commands to generate.