From dedf7fae7dd0041572a8a5df89c52e310262b097 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 16 Jul 2013 22:13:03 +0000 Subject: Set template output to utf8 --- lib/MGA/Advisories.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index b9e3efc..b47e11d 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -194,7 +194,9 @@ sub process_template { my ($template, $src, $vars, $dest, $ext) = @_; foreach my $extension ($ext ? $ext : @{$config->{output_format}}) { next unless -f "$config->{tmpl_dir}/$src.$extension"; - $template->process("$src.$extension", $vars, ref $dest ? $dest : "$dest.$extension") + $template->process("$src.$extension", $vars, + ref $dest ? $dest : "$dest.$extension", + binmode => ':utf8') || die $template->error, "\n"; } } -- cgit v1.2.1