projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a6fea8
)
Fix Unicode decode/encode
author
Marius Gavrilescu
<marius@ieval.ro>
Thu, 27 Mar 2014 06:23:50 +0000
(08:23 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Thu, 27 Mar 2014 06:23:50 +0000
(08:23 +0200)
lib/Gruntmaster/Page/Base.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/Base.pm
b/lib/Gruntmaster/Page/Base.pm
index 6ed8fde6709a9f0107eb7e8e9333ade33dafd4d3..426bde7ff6d8e1ea524a641dda351cf66a4782a1 100644
(file)
--- 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 ] ]
}
This page took
0.010739 seconds
and
4
git commands to generate.