CSV を文字コード変換しつつロード - Qiita

CSV.foreach(filename, encoding: "Shift_JIS:UTF-8") do |row| # …endだが、未定義文字があるとエラーに。Kernel#open だと…