From: Marius Gavrilescu Date: Wed, 26 Mar 2014 06:10:24 +0000 (+0200) Subject: Use utf8::decode instead of utf8::encode in Base X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=b8d6a6f1cf24a61998342a2bfc5deb332a56e388;p=gruntmaster-page.git Use utf8::decode instead of utf8::encode in Base --- diff --git a/lib/Gruntmaster/Page/Base.pm b/lib/Gruntmaster/Page/Base.pm index 99ca432..6ed8fde 100644 --- a/lib/Gruntmaster/Page/Base.pm +++ b/lib/Gruntmaster/Page/Base.pm @@ -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 ] ] }