lib/efo_nelfo/reader/csv.rb in efo_nelfo-0.0.6 vs lib/efo_nelfo/reader/csv.rb in efo_nelfo-0.0.7

- old
+ new

@@ -6,20 +6,19 @@ class CSV CSV_OPTIONS = { col_sep: ';', headers: false, row_sep: "\r\n", - encoding: "iso-8859-1", quote_char: "\x00", force_quotes: false, skip_blanks: true } attr_reader :csv, :data def initialize(options) if options[:filename] - @data = File.read(options[:filename], encoding: CSV_OPTIONS[:encoding]) + @data = File.read(options[:filename], encoding: Encoding::ISO_8859_1) else @data = options[:data] end @csv = ::CSV.new @data, CSV_OPTIONS