I am trying to parse a CSV file generated from an Excel spreadsheet.
Here is my code
require \'csv\' file = File.open(\"input_file\") csv = CSV.parse
Specify the encoding with encoding option:
encoding
CSV.foreach(file.path, headers: true, encoding:'iso-8859-1:utf-8') do |row| ... end