You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First entry should be without surrounding single quotes.
Third entry must contain newline instead of just "n".
Expected result
single quote ' test,"double quote "" test","newline
test"
Note that there should be 2 lines of text for single csv entry, containing newline. First entry (with single quote) isn't quoted at all. I created this CSV with LibreOffice Calc, and it is parsed with php correctly.
The text was updated successfully, but these errors were encountered:
Script produces incorrect csv when parsing dump with single/double quotes and newlines. Example:
After converting we have:
Newline is obviously disappeared, and if we parse it with php
fgetcsv()
, we'll see incorrect single quotes:Errors here:
Expected result
Note that there should be 2 lines of text for single csv entry, containing newline. First entry (with single quote) isn't quoted at all. I created this CSV with LibreOffice Calc, and it is parsed with php correctly.
The text was updated successfully, but these errors were encountered: