postgres-copy
postgres-copy copied to clipboard
Set encoding?
Is there a way I could set encoding like this - :encoding => 'windows-1251'
I am getting "invalid byte sequence in UTF-8" error
@NathanielGiron the encoding options is not exposed. It's a simple code change in case you want to give it a shot at a PR. You can also try to set the client_encoding session-level variable in your PostgreSQL connection.