Question : How to change the encoding of the postgre in the client side using pg_set_client_encoding?

Hello,

I'm trying to import an Excel file using EMS SQL Manager for Postgre, but the error "09/07/2010 11:14 - Line 12: ERROR:  invalid byte sequence for encoding "UTF8": 0xba" it's appearing. Searching in the posts, I've founded that we can use the command pg_set_client_encoding. So, I tried to execute it in this way: "pg_set_client_encoding('UNICODE')" (removing the quotes too) but a syntax error appear.

Some idea?

Thanks.

Answer : How to change the encoding of the postgre in the client side using pg_set_client_encoding?

try
select pg_set_client_encoding('UNICODE');
Random Solutions  
 
programming4us programming4us