I am generating CSV files that needs to be opened and reviewed in Excel once they have been generated. It seems that Excel requires a different encoding than UTF-8.
config = { encoding: 'ISO-8859-1' } CSV.generate(config) { |csv| csv << ["Text á", "Text é", "Text æ"] }