@@ -, +, @@ strip BOM from file if it exists --- Koha/Patrons/Import.pm | 1 + 1 file changed, 1 insertion(+) --- a/Koha/Patrons/Import.pm +++ a/Koha/Patrons/Import.pm @@ -404,6 +404,7 @@ sub prepare_columns { foreach my $keycol (@csvcolumns) { # columnkeys don't contain whitespace, but some stupid tools add it $keycol =~ s/ +//g; + $keycol =~ s/^\N{BOM}//; # Strip BOM if exists, otherwise it will be part of first column key $params->{keycol}->{$keycol} = $col++; } --