When opening a CSV file in Ruby with CSV.open, is there a way to set encoding fallback similar to how it's set in String.encode?
Example:
CSV.open('file.csv', encoding: 'windows-1252:utf-8')
I would like to set something like this:
CSV.open('file.csv', encoding: 'windows-1252:utf-8', fallback: {
"\u0080" => "\x80",
"\u0081" => "\x81"
})
I couldn't find this in the docs, but maybe it's hidden somewhere.