Chaîne d'analyse Ruby CSV avec des citations échappées

J'ai une ligne dans mon fichier CSV qui a échappé à certains de devis:

173,"Yukihiro \"The Ruby Guy\" Matsumoto","Japan"

Lorsque j'essaie de l'analyser, c'est le Ruby CSV analyseur:

require 'csv'
CSV.foreach('my.csv', headers: true, header_converters: :symbol) do |row|
  puts row
end

J'obtiens cette erreur:

.../1.9.3-p327/lib/ruby/1.9.1/csv.rb:1914:in `block (2 levels) in shift': Missing or stray quote in line 122 (CSV::MalformedCSVError)

Comment puis-je obtenir autour de cette erreur?

source d'informationauteur Andrew | 2013-01-26