nice-json2csv icon indicating copy to clipboard operation
nice-json2csv copied to clipboard

Certain character breaks CSV delimiter

Open jerrydeng opened this issue 10 years ago • 2 comments

When rendering CSV if the cell string contained in the double quotes contain some complex combination (e.g. \r \n , " '), it breaks the delimiter and ended up with delimiter being at the wrong spot. Is there any options to specify that I can use to wrap all that in or escape those characters?

jerrydeng avatar Dec 15 '14 23:12 jerrydeng

I ended up using string library to clean it up.

jerrydeng avatar Dec 16 '14 03:12 jerrydeng

I think it would be very useful if you could describe the bug in the form of an example:

  • input
  • expected output
  • actual output

Thanks Matteo

matteofigus avatar Dec 16 '14 06:12 matteofigus