Subject: | single allow_loose_quotes |
allow_loose_quotes => 1
allows to have
;"foo";"foo"bar"";
but not an uneven count of quotes like:
;"foo";"foo"bar";
Worse, this line isn't returning an error in error_diag() but just
ignored or maybe merged with the previous or next.
I found this by having $count++ inside
while (my $row = $csv->getline($fh_file))
returning the "wc -l" minus 1.
Is it possible to detect ;" and "; as the real quotes and escaping
single quotes between?
Is there a workaround so far to repair the cvs data on the fly with
getline() without writing into new file?
Best regards,
Massimo
The CSV line with that issue:
"xx";"xx";"Privat";"";"";"PAYPAL";"-16,51";"16.05.2011";"16.05.2011";"Q52Y2X327E
* MCT";"R, IHR EINKAUF BEI MCT";"1.340,47";"";"NONREF";"Computer";"2,5"
FESTPLATTE";"E R, ARTIKEL 1 10513T0PT ";;"";