BUG #6452: psql: can't change client encoding from the command line - Mailing list pgsql-bugs

From felix.gerzaguet@gmail.com
Subject BUG #6452: psql: can't change client encoding from the command line
Date
Msg-id E1RwHHj-0002h6-Ds@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #6452: psql: can't change client encoding from the command line
List pgsql-bugs
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:=20=20=20=20=20=20=20=20

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

pgsql-bugs by date:

Previous
From: "nowind_lee"
Date:
Subject: rs.getMetaData.getTableName always return empty string
Next
From: "nowind_lee"
Date:
Subject: rs.getMetaData.getTableName always return empty string