Skip to content
Advertisement

CSV parsing with univocity-parsers and backslash-escaped quotes

I’m having some trouble parsing CSV with backslash escaped qoutes ". Most of lines in source CSV don’t include escaped quotes but where there are I can’t seem to find appropriate settings for correct parsing.

CSV example (each line with 4 columns):

JavaScript

CSV parser settings:

JavaScript

Code snippet:

JavaScript

Lines are parsed correctly until two escaped quotes are present in one line. Expected parsed lines are:

JavaScript

Advertisement

Answer

Upon further inspection I found an existing issue for v2.9.1.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement