Re: Warning when connecting from PSQL Command - Mailing list pgsql-admin

From Thomas Kellerer
Subject Re: Warning when connecting from PSQL Command
Date
Msg-id mkgskd$sj0$1@ger.gmane.org
Whole thread Raw
In response to Re: Warning when connecting from PSQL Command  (Harshad Adalkonda <adalkondaharshad@gmail.com>)
List pgsql-admin
Harshad Adalkonda schrieb am 30.05.2015 um 20:34:
>> On Fri, May 29, 2015 at 11:43 PM, danny <dinesh4202001@gmail.com <mailto:dinesh4202001@gmail.com>> wrote:
>>
>>     Warning console code page (437) differs from Window code page (1252) 8- bit
>>     character might not work correctly. See psql reference page "Notes for
>>     windows users" for details
>>     Type "Help" for help
>>
>
> Don't mind the warning message it will always shown when you connect to psql terminal.

No, it will not "always" show if you follow the advice given in the manual and change the codepage in
the command line before starting psql:

    c:\>psql
    psql (9.4.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=> \q

    c:\>chcp 1252
    Active codepage: 1252.

    c:\>psql
    psql (9.4.2)
    Type "help" for help.

    postgres=>


Thomas

pgsql-admin by date:

Previous
From: "Boylan, Ross"
Date:
Subject: Re: PostgreSQL 9.1 "database system was interrupted; last known up at"
Next
From: Albe Laurenz
Date:
Subject: Re: pg_dump not dumping some schemas