postgres-copy icon indicating copy to clipboard operation
postgres-copy copied to clipboard

Set encoding?

Open NathanielGiron opened this issue 5 years ago • 1 comments

Is there a way I could set encoding like this - :encoding => 'windows-1251'

I am getting "invalid byte sequence in UTF-8" error

NathanielGiron avatar Sep 15 '20 02:09 NathanielGiron

@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.

diogob avatar Sep 15 '20 15:09 diogob