Skip to content
New issue

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

Possible amelioration : add string as delimiters #94

Open
jak0nil opened this issue Feb 5, 2020 · 1 comment
Open

Possible amelioration : add string as delimiters #94

jak0nil opened this issue Feb 5, 2020 · 1 comment

Comments

@jak0nil
Copy link

jak0nil commented Feb 5, 2020

Hello,

I've tried using your library for parsing a file, but in my last column some data has commas in it.
Example:
"1037126850","d reconstruction from d cultural heritage models","patrick callet:2280254964","2014","4","multimedia:0.41869545;spectral rendering:0.5759965;rendering (computer graphics):0.4869032;data acquisition:0.4205314;science, technology and society:0.4036085;3d reconstruction:0.458837122;making-of:0.414647043;cultural heritage:0.5178016;computer graphics (images):0.384940773;geography:0.3850307"

As you can see, one of my tags is : science, technology and society:0.4036085;
And as I read this line, I get an exception.
So maybe setting the demiliter to "\",\"" could be helpful.

@ben-strasser
Copy link
Owner

Thanks for the feedback. However, I do not understand the problem. Why does CSVReader<6, trim_chars<' '>, double_quote_escape<',','\"'> > not solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants