pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emi <emilu@encs.concordia.ca>
To: Pierre Chevalier Géologue <pierrechevaliergeol@free.fr>
To: pgsql-sql@postgresql.org
Subject: Re: psql -c "\copy table to test.csv with CSV" - french character is wrong
Date: Thu, 23 Nov 2017 13:57:52 -0500
Message-ID: <de7c7cc0-3710-12db-5bd1-35f0fa8b7006@encs.concordia.ca> (raw)
In-Reply-To: <0fab017c-ada9-e64f-a889-57e868c35230@free.fr>
References: <7c6b8218-bdde-1c0a-2cbf-f817b37c2a2f@encs.concordia.ca>
	<0fab017c-ada9-e64f-a889-57e868c35230@free.fr>


> sql2csv "SELECT DISTINCT opid, year FROM public.field_observations 
> ORDER BY year LIMIT 10" > /tmp/rien.csv
>
Ok. Will use stdout then.

Thanks.
--
psql  -c "copy t1 to STDOUT with CSV" >! test.csv




view thread (5+ messages)  latest in thread

Message-ID: <de7c7cc0-3710-12db-5bd1-35f0fa8b7006@encs.concordia.ca>
Permalink:  ../de7c7cc0-3710-12db-5bd1-35f0fa8b7006@encs.concordia.ca/
Also on:    postgresql.org/message-id/de7c7cc0-3710-12db-5bd1-35f0fa8b7006@encs.concordia.ca

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: emilu@encs.concordia.ca, pierrechevaliergeol@free.fr
  Subject: Re: psql -c "\copy table to test.csv with CSV" - french character is wrong
  In-Reply-To: <de7c7cc0-3710-12db-5bd1-35f0fa8b7006@encs.concordia.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox