diff --git a/app/models/bulkrax/csv_entry.rb b/app/models/bulkrax/csv_entry.rb index 9288b601..4828d55b 100644 --- a/app/models/bulkrax/csv_entry.rb +++ b/app/models/bulkrax/csv_entry.rb @@ -20,7 +20,7 @@ def self.read_data(path) raise StandardError, 'CSV path empty' if path.blank? options = { headers: true, - header_converters: ->(h) { h.to_sym }, + header_converters: ->(h) { h.to_s.strip.to_sym }, encoding: 'utf-8' }.merge(csv_read_data_options)