Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1D86419670C4 for ; Sat, 11 Feb 2012 14:03:11 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RwHHx-0006D7-7c for pgsql-bugs@postgresql.org; Sat, 11 Feb 2012 18:03:10 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RwHHk-0007rN-2x for pgsql-bugs@postgresql.org; Sat, 11 Feb 2012 18:02:56 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RwHHj-0002h6-Ds for pgsql-bugs@postgresql.org; Sat, 11 Feb 2012 18:02:55 +0000 Date: Sat, 11 Feb 2012 18:02:55 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6452: psql: can't change client encoding from the command line To: pgsql-bugs@postgresql.org From: felix.gerzaguet@gmail.com X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201202/100 X-Sequence-Number: 32443 The following bug has been logged on the website: Bug reference: 6452 Logged by: F=C3=A9lix 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=3DENCODING=3DUTF8 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=3D# \encoding WIN1252 postgres=3D# \echo :ENCODING WIN1252 postgres=3D# \encoding UTF8 postgres=3D# \encoding UTF8 postgres=3D# \echo :ENCODING UTF8 postgres=3D# \q