I am using PHP to import a CSV file, which originates from an excel spreadsheet. Some of the fields contain line breaks in them, so when I reopen the csv in excel / open office spreadsheet, it misinterprets where the line breaks should happen.
Also in my script, using fgetcsv to go through each line, it is incorrectly line breaking where it shouldn't be.
I could manually cleanse the data but a) that would take ages as its a 10k line file, and b) the data is exported from a clients existing piece of software
Any ideas on how to automatically solve this on the import process? I would have thought delimiting the fields would have sorted it but it does not.