pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: felix.gerzaguet@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6452: psql: can't change client encoding from the command line
Date: Sat, 11 Feb 2012 18:02:55 +0000
Message-ID: <E1RwHHj-0002h6-Ds@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6452
Logged by:          Félix
Email address:      felix.gerzaguet@gmail.com
PostgreSQL version: 9.1.2
Operating system:   Win XP Pro SP3
Description:        

Hi,

here is the problem:

Using the command line, I can't change the client encoding, but I can change
it using the "\encoding" command :

C:\>psql --variable=ENCODING=UTF8
could not find a "psql" to execute
could not find a "psql" to execute
psql (9.1.2)
WARNING: Console code page (850) differs from Windows code page (1252)
         8-bit characters might not work correctly. See psql reference
         page "Notes for Windows users" for details.
Type "help" for help.

postgres=# \encoding
WIN1252
postgres=# \echo :ENCODING
WIN1252
postgres=# \encoding UTF8
postgres=# \encoding
UTF8
postgres=# \echo :ENCODING
UTF8
postgres=# \q





view thread (3+ messages)  latest in thread

Message-ID: <E1RwHHj-0002h6-Ds@wrigleys.postgresql.org>
Permalink:  ../E1RwHHj-0002h6-Ds@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1RwHHj-0002h6-Ds@wrigleys.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: felix.gerzaguet@gmail.com
  Subject: Re: BUG #6452: psql: can't change client encoding from the command line
  In-Reply-To: <E1RwHHj-0002h6-Ds@wrigleys.postgresql.org>
  References: <E1RwHHj-0002h6-Ds@wrigleys.postgresql.org>

* 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