Closed 4integration closed 2 months ago
Hardly known, there is a setting "quoteChar". The default value is "
.
It is normally used to encode fields that contain the separator (here tabulator).
So papaparse thinks that "Första hjälpen" is actually the whole field (because it starts and ends with the quoteChar) and gives an error.
Let m
be your data
let m = `...`
Papa.parse(m, { delimiter: '\t', quoteChar: '#' }
Tested on https://www.papaparse.com/demo today
Using latest Papaparse to parse large CSV files. It handles double quotes in the value but not when value starts with double quotes.
Using this code:
If I have the following csv data:
It outputs
If I move the first double quote as in:
The result is correct: