Character encoding issue exporting rails data to CSV
When Excel opens the CSV file it just assumes an “iso-8859-1” character encoding. I guess it doesn’t even know about the encoding information you send along within your HTTP reply. That’s why setting this to UTF-8 doesn’t work. So in order to export your CSV file for Excel in Rails you could do this: send_data … Read more