I have data like, below and when reading as CSV, I don't want to consider comma when its within the quotes even if the quotes are not immediate to the separator (like record #2). 1 and 3 records are good if we use separator, but failing on 2nd record. I tried escapeCharacter but not working. Input:
col1, col2, col3
a, b, c
a, b1 "b2, b3" b4, c
"a1, a2", b, c
Expected output for 2nd record is:
a
b1 "b2, b3" b4
c
Actual output:
a
b1 "b2
b3" b4