I am working on a website where users can fill in information on HTML forms and the data is saved to a CSV file. I have also added an admin panel where the admin can download those CSV files. However, when I open them in Excel, some strange characters are prepended to the file.
I have read and found that these characters are the UTF-8 BOM characters, but is it possible to download the file in a different encoding that will be supported with Excel, such as WINDOWS-1252?
<a href="boards.csv" download>