Coder Social home page Coder Social logo

Comments (4)

d99kris avatar d99kris commented on July 4, 2024

Hi @yhviqd - could you please provide some more information about the issue?

Since you mentioned WriteCsv(), is it correct that this an issue faced when writing CSV?

Ideally if you could provide a minimal code snippet that reproduce the issue, along with your expectation and the actual result, it would be very helpful to understand the problem.

Thanks!

from rapidcsv.

yhviqd avatar yhviqd commented on July 4, 2024

I have been using this library recently, and my colleague has reported parsing failure, as shown in the following figure
e368f39ae8df53345227eee5ba20fdcf
I found that it was due to the inclusion of the enter key and not being enclosed in quotation marks。It should be
”[161][无此功能]
[2103379]
",116
Because the return key is line delimiter, when a string contains it, it should be quoted

from rapidcsv.

d99kris avatar d99kris commented on July 4, 2024

Thanks for providing more details, if I understand the issue correctly you're using rapidcsv::Document::Save() to write CSV data which has cells containing linebreaks. Despite AutoQuote flag being set, the resulting CSV written by rapidcsv contains unquoted cells with linebreak.

I can reproduce the issue and I agree with the proposed fix you mentioned. I will prepare the change and update test(s) accordingly.

from rapidcsv.

d99kris avatar d99kris commented on July 4, 2024

This issue should be fixed by above commit. Please let me know if you're still seeing any issues. Thanks!

from rapidcsv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.