pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-novice@postgresql.org
Subject: Re: warning about console code page on starting psql
Date: Tue, 16 Dec 2014 22:40:54 -0700 (MST)
Message-ID: <1418794854447-5831041.post@n5.nabble.com> (raw)
In-Reply-To: <54910242.3090706@gmail.com>
References: <54910242.3090706@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-novice>

Going from memory here but...

The window is which the command prompt appears is called the console.  When
you type psql at the command prompt you are now running a console
application in that same console.  You can have more than one running
console and each one is independent.  Any changes to the console, e.g. via
the "cmd.exe /c chcp 1252" command, only persist as long as that console
window remains open.  Going into and out of a console application should not
make a difference, only closing the actual window.  Same goes for the font -
it is a property of the console and not psql directly.

Since the database server uses the Windows code page you want your console
to match.  So given said warning you want to supply the current Windows
value to the chcp command.

The message and documentation could probably be improved though I'm not
positive what I am saying is 100% correct as I have never encountered this
problem - because I've never used psql on Windows...

David J.



--
View this message in context: http://postgresql.nabble.com/warning-about-console-code-page-on-starting-psql-tp5831036p5831041.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.


-- 
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice



view thread (11+ messages)  latest in thread

Message-ID: <1418794854447-5831041.post@n5.nabble.com>
Permalink:  ../1418794854447-5831041.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1418794854447-5831041.post@n5.nabble.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: david.g.johnston@gmail.com, pgsql-novice@postgresql.org
  Subject: Re: warning about console code page on starting psql
  In-Reply-To: <1418794854447-5831041.post@n5.nabble.com>

* 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