diogob / postgres-copy

Simple PostgreSQL's COPY command support in ActiveRecord models
MIT License
429 stars 64 forks source link

Add option to read atypically encoded files #62

Closed mattbechtel1 closed 2 years ago

mattbechtel1 commented 2 years ago

I recently came across a CSV file with a byte order mark in the header row. This quickfix allowed me to copy_from it using the :map option by specifying the encoding to read the file.

Thanks for the useful gem, btw!