From 821c3e698167b2d08652406397633a0bcde4e887 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 27 Mar 2014 08:23:50 +0200 Subject: [PATCH] Fix Unicode decode/encode --- lib/Gruntmaster/Page/Base.pm | 2 ++ 1 file changed, 2 insertions(+) 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 ] ] } -- 2.39.2