$c->stash(mtime => POSIX::strftime('%Y-%m-%d %H:%M:%S',
localtime($stat->mtime)));
- $c->stash(file_content => $file->slurp);
+ my $content = $file->slurp;
+ $content = Encode::decode('utf-8', $content);
+ $c->stash(file_content => $content);
my $lang = $c->param('ext');
$c->stash(language => "language-$lang");