Re: warning about console code page on starting psql

From: Stephen Cook <sclists(at)gmail(dot)com>
To: Scott Robertson <stumpednomore(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: warning about console code page on starting psql
Date: 2014-12-17 05:26:02
Message-ID: 549113EA.2010007@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-novice

On 12/16/2014 11:10 PM, Scott Robertson wrote:
> Set the code page by entering cmd.exe /c chcp 1252. (1252 is a code
> page that is appropriate for German; replace it with your value.) If
> you are using Cygwin, you can put this command in /etc/profile.

Do not type the "cmd.exe /c" part. This will run a new instance of "cmd"
(the Windows command-line console); "\c" means "run the following
command"... So you are basically starting a new console, changing the
code page within that new console, and exiting back to your original
console.

Instead, once you have a command prompt, use "chcp 1252" to change the
code page of the Windows console to match the code page "psql" expects
from Windows. Then you can run "psql" without the warning. You will have
to do this each time you open a new command line console, before running
"psql", as far as I can tell.

-- Stephen

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G Johnston 2014-12-17 05:40:54 Re: warning about console code page on starting psql
Previous Message Scott Robertson 2014-12-17 04:10:42 warning about console code page on starting psql

Browse pgsql-novice by date

  From Date Subject
Next Message David G Johnston 2014-12-17 05:40:54 Re: warning about console code page on starting psql
Previous Message Scott Robertson 2014-12-17 04:10:42 warning about console code page on starting psql