We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have this input: aa, "bb,cc", dd and I expect this list:
aa, "bb,cc", dd
aa bb,cc dd
Using the DefaultCSVFormat, this input fails with MalformedCSVException.
DefaultCSVFormat
MalformedCSVException
using this formatter:
implicit object MyFormat extends DefaultCSVFormat { override val escapeChar = '\\' }
then I get this list:
aa "bb cc" dd
so, the parsing is invalid when a delimiter is inside a quote. also, it should ignore spaces between fields.
The text was updated successfully, but these errors were encountered:
Note: the previous example works as expected using the apache commons CSV parser:
org.apache.commons.csv.CSVParser.parse( new File(file), StandardCharsets.UTF_8, CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(true))
Sorry, something went wrong.
+1 On this
No branches or pull requests
I have this input:
aa, "bb,cc", dd
and I expect this list:
Using the
DefaultCSVFormat
, this input fails withMalformedCSVException
.using this formatter:
then I get this list:
so, the parsing is invalid when a delimiter is inside a quote.
also, it should ignore spaces between fields.
The text was updated successfully, but these errors were encountered: