]> iEval git - plack-app-gruntmaster.git/commitdiff
Read articles as UTF-8 text
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 28 Apr 2016 13:21:08 +0000 (14:21 +0100)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 28 Apr 2016 13:21:08 +0000 (14:21 +0100)
lib/Plack/App/Gruntmaster/HTML.pm

index de27579a5a1a2f7cead908df5ec0d86863da515f..427b197002a5fff16c0dc299f85fde0e88003c95 100644 (file)
@@ -82,7 +82,7 @@ sub render_article {
        $lang //= 'en';
        my $title = read_file "a/$art.$lang.title";
        chomp $title;
-       my $meat  = read_file "a/$art.$lang";
+       my $meat  = read_file "a/$art.$lang", binmode => ':utf8';
        _render('skel', $lang, title => $title , meat => $meat, %args)
 }
 
This page took 0.018059 seconds and 4 git commands to generate.