fix utf-8 chars in svg template
[ink-generator.git] / generator.pl
index 2db22c7..92400a5 100755 (executable)
@@ -13,7 +13,7 @@ die "usage: $0 template.svg data.csv\n" unless -r $svg_template && -r $csv_file;
 my $svg;
 {
        local $/ = undef;
-       open(my $fh, '<', $svg_template);
+       open(my $fh, '<:encoding(utf8)', $svg_template);
        $svg = <$fh>;
        close $fh;
 }