Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y177g-00030p-5q for pgsql-novice@arkaria.postgresql.org; Wed, 17 Dec 2014 05:26:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y177f-000455-JF for pgsql-novice@arkaria.postgresql.org; Wed, 17 Dec 2014 05:26:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y177e-00044y-FG for pgsql-novice@postgresql.org; Wed, 17 Dec 2014 05:26:06 +0000 Received: from mail-qa0-x235.google.com ([2607:f8b0:400d:c00::235]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y177b-0008E2-2Z for pgsql-novice@postgresql.org; Wed, 17 Dec 2014 05:26:05 +0000 Received: by mail-qa0-f53.google.com with SMTP id bm13so10587430qab.40 for ; Tue, 16 Dec 2014 21:26:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=atE6yS1/t4+n9/uUDdyaz2xmRNfSiXQJLXSz2oDHgqE=; b=tlMvfxtf3IemS5E+XYDBjMy/PozkFShOlgOegEiVmdrm+kA6MUz2QfnDrQnu85YYFq 3xPIn69ks86nehZiHCjGfatK1y1u3LX3vH4Kb5lfpRAN70lILA8vJCLFE3NmiJLMXLcY jxj7B1A5KPK186b7Y69dsbTQRcuCISvDB6VK6nrkm3DF/MSRqCbr0Ml+ob5mAtAzGloQ eqGB/EhuXWNJCGNFHGZgINcEXvpB47dFmMPhGac6Kyh+XHtfSciB6+hW033wdOYcJyVZ esLZ2pAQXvDxj4qCtMdoBQhT18k5zpSxFRqk1prm7TcLVPdxTLzsGDkXYqfXW5UOTGZt ZULA== X-Received: by 10.140.32.68 with SMTP id g62mr9398665qgg.64.1418793960819; Tue, 16 Dec 2014 21:26:00 -0800 (PST) Received: from [127.0.0.1] (ool-44c7befc.dyn.optonline.net. [68.199.190.252]) by mx.google.com with ESMTPSA id b39sm1292716qge.10.2014.12.16.21.25.59 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 21:25:59 -0800 (PST) Message-ID: <549113EA.2010007@gmail.com> Date: Wed, 17 Dec 2014 00:26:02 -0500 From: Stephen Cook User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Scott Robertson , pgsql-novice@postgresql.org Subject: Re: warning about console code page on starting psql References: <54910242.3090706@gmail.com> In-Reply-To: <54910242.3090706@gmail.com> Content-Type: multipart/alternative; boundary="------------090302000500050004090106" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-novice Precedence: bulk Sender: pgsql-novice-owner@postgresql.org This is a multi-part message in MIME format. --------------090302000500050004090106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090302000500050004090106 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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

--------------090302000500050004090106--