use warnings;
use strict;
use IkiWiki;
+use Encode;
+use open qw{:utf8 :std};
package IkiWiki;
}
if (length $file) {
push @{ $ci{'details'} }, {
- 'file' => $file,
+ 'file' => decode_utf8($file),
'sha1_from' => $sha1_from,
'sha1_to' => $sha1_to,
};
}
$subject .= " by $user";
- my $template = HTML::Template->new(
- filename => "$config{templatedir}/notifymail.tmpl"
- );
+ my $template = template("notifymail.tmpl");
$template->param(
wikiname => $config{wikiname},
diff => $diff,