From: Marius Gavrilescu Date: Thu, 28 Apr 2016 13:21:08 +0000 (+0100) Subject: Read articles as UTF-8 text X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=ea99634e69cd1345da3be64824c4d0ebd8635ead;p=plack-app-gruntmaster.git Read articles as UTF-8 text --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index de27579..427b197 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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) }