From: Marius Gavrilescu Date: Thu, 27 Mar 2014 06:23:50 +0000 (+0200) Subject: Fix Unicode decode/encode X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=821c3e698167b2d08652406397633a0bcde4e887;p=plack-app-gruntmaster.git Fix Unicode decode/encode --- diff --git a/lib/Gruntmaster/Page/Base.pm b/lib/Gruntmaster/Page/Base.pm index 6ed8fde..426bde7 100644 --- a/lib/Gruntmaster/Page/Base.pm +++ b/lib/Gruntmaster/Page/Base.pm @@ -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 ] ] }