The file is created in javascript and downloaded through an a tag. But Excel complains that there is something wrong with the file format.
- In what file format will Excel not throw errors?
- And can this be generated with javascript?
Apparently Excel wants the BOM at the beginning, but I have no idea how to change that. The file is encoded in Base64.
First error: The file format and extension of 'filename.csv' don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you wan to open it anyway?
Second error after Yes: Excel has detected that 'filename.csv' is a SYLK file, but cannot load it. Either the file has errors or it is not a SYLK file format. Click OK to try to open the file in a different format.