X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/729991564ec7e1116fc023c51e73b47af8b6fce7..c2ac80b185a2a1487f739c310a8ddb03028da2ca:/IkiWiki/Plugin/table.pm diff --git a/IkiWiki/Plugin/table.pm b/IkiWiki/Plugin/table.pm index f3c425a37..7fea8ab1c 100644 --- a/IkiWiki/Plugin/table.pm +++ b/IkiWiki/Plugin/table.pm @@ -135,6 +135,7 @@ sub split_csv ($$) { my $csv = Text::CSV->new({ sep_char => $delimiter, binary => 1, + decode_utf8 => 1, allow_loose_quotes => 1, }) || error("could not create a Text::CSV object"); @@ -143,7 +144,7 @@ sub split_csv ($$) { foreach my $line (@text_lines) { $l++; if ($csv->parse($line)) { - push(@data, [ map { decode_utf8 $_ } $csv->fields() ]); + push(@data, [ $csv->fields() ]); } else { debug(sprintf(gettext('parse fail at line %d: %s'),