I want to create a CSV file through Django that contains unicode data (greek characters) and I want it to be opened directly from MS Excel. Elsewhere I had read about the un
I've never been able to open a UTF-8-encoded (CSV) file in Excel. The only way I managed to make Excel import files properly was with UTF-16LE. YMMV.
EDIT
First
writer.writerow(codecs.BOM_UTF16_LE)
Then (as many times as required; str is the string to encode and write)
writer.writerow(str.decode('utf8').encode('utf_16_le'))