I have problems reading a CSV file generated by Excel. The code reading the file is very simple and it works ok with CSV files generated by hand:
file = request.FILES['organisations']
data = csv.reader(file, dialect='excel', delimiter=',', quotechar='"')
for line in data :
...
However, I get the following error pointing to that last line when I try to upload an Excel CSV file:
new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
I've been Googling around but haven't been able to find something useful. Any help is appreciated!