I am using ruby CSV.read with massive data. From time to time the library encounters poorly formatted lines, for instance:
\"Illegal quoting in line 53657.\"
Try forcing double quote character " as quote char:
"
require 'csv' CSV.foreach(file,{headers: :first_row, quote_char: "\x00"}) do |line| p line end