Module: StructuredCsv::Common
- Defined in:
- lib/structured_csv/common.rb
Class Method Summary collapse
Class Method Details
.load_csv(csvfile) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/structured_csv/common.rb', line 5 def self.load_csv(csvfile) # warn csvfile content = File.read(csvfile, encoding: "bom|utf-8").scrub CSV.parse(content, liberal_parsing: true, encoding: "UTF-8") end |