Skip to content

It seems trim & quote doesn't work as expect #327

Answered by BurntSushi
quangson91 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, what you're missing is that your CSV data is invalid and the csv crate is trying to salvage it. This has nothing to do with the trim or quote options. You can't put spaces between fields in the csv data.

You need to either fix your data or write bespoke code to fix it after parsing.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quangson91
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants