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
You can supply source encoding straight in the file mode parameter:
CSV.foreach( "file.csv", "r:windows-1250" ) do |row| <your code> end