Re: psql -c "\copy table to test.csv with CSV" - french character is wrong

From: Emi <emilu(at)encs(dot)concordia(dot)ca>
To: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: psql -c "\copy table to test.csv with CSV" - french character is wrong
Date: 2017-11-24 14:47:01
Message-ID: d0ce95c8-5f91-91fe-d56d-980421b4382f@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,
>
>
> Tried:
> psql -c "\copy t1 to test.csv with CSV ENCODING 'UTF8' "
> Got: \copy: parse error at "encoding"
>
>
> mixing obsolete and non-obsolete syntax. requires parentheses around
> with options and all options written as key-value pairs.
I think you mean 9.x. My version is 8.x, and doc shows ENCODING
'encoding_name' only for 9.x. I will use stdout for 8.x.

Thanks.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message nikhil raj 2017-11-25 20:03:53 Roles and security
Previous Message David G. Johnston 2017-11-24 06:28:30 Re: psql -c "\copy table to test.csv with CSV" - french character is wrong