Re: suggestion for "psql"

From: Richard Huxton <dev(at)archonet(dot)com>
To: Holger Klawitter <lists(at)klawitter(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: suggestion for "psql"
Date: 2004-11-15 09:37:03
Message-ID: 419878BF.3090308@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Holger Klawitter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there,
>
> I haven't found a way to set the client encoding of a psql connection other
> then "\encoding" which is arkward for batch processing. As .psqlrc is being
> ignored during batch processing and the internal encoding is being set
> *after* "-v", I have to resort to arkward solutions in order to read data via
> scripts. (To whom it may concern: instead of using "-c" you can pipe your
> command from stdin).

set client_encoding=MyEncoding;

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2004-11-15 10:35:21 Re: OID
Previous Message Richard Huxton 2004-11-15 09:35:09 Re: Visual Studio and Postgresql