Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jIcXr-0002KU-DX for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 18:20:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jIcXo-0000VK-7C for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 18:20:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jIcXn-0000VD-TV for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2020 18:20:23 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIcXk-0005eX-1Z for pgsql-general@postgresql.org; Sun, 29 Mar 2020 18:20:23 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id B61131A0C; Sun, 29 Mar 2020 21:20:19 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JB9mknh1hVg1; Sun, 29 Mar 2020 21:20:17 +0300 (EEST) Received: from mail.hot.ee (hot-relayhost2.estpak.ee [213.180.2.80]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 288811810; Sun, 29 Mar 2020 21:20:17 +0300 (EEST) Received: from dell2 (66-63-196-88.sta.estpak.ee [88.196.63.66]) (Authenticated sender: kobruleht2) by HOT-Relayhost2.estpak.ee (Postfix) with ESMTPSA id 48r3mG39VSz2jW; Sun, 29 Mar 2020 21:20:13 +0300 (EEST) Message-ID: <0FD25821F38B4B45BC8C56140A735713@dell2> From: "Andrus" To: "Tom Lane" , "Adrian Klaver" Cc: "pgsql-general" References: <22672.1585442578@sss.pgh.pa.us> <1046C47572F54F1BA5A726A49BAC6F3C@dell2> <2a30dc9b-79e1-69c6-3360-3cf9ac326b7e@aklaver.com> In-Reply-To: <2a30dc9b-79e1-69c6-3360-3cf9ac326b7e@aklaver.com> Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore Date: Sun, 29 Mar 2020 21:20:06 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi! >Per my previous post, you might try adding something like: >cmd.exe /c chcp 1257 >to the top of the batch file. This idea came from here: >https://stackoverflow.com/questions/20794035/postgresql-warning-console-code-page-437-differs-from-windows-code-page-125 >If I am following the error correctly then the issue is that the Postgres >console programs are using CP755 and that is not something for which there >is an automatic conversion: >https://www.postgresql.org/docs/12/multibyte.html#id-1.6.10.5.7 >There is a conversion for 1257 clients so having your console run as 1257 >should solve the problem. Someone with more current experience on Windows >will need to comment on whether that is the viable or best solution. Both servers have UTF-8 encoding. Non-unicode code page 755 referes only to command line applications like psql. Postgres service, pg_dump and pg_restore do not use console codepages any way, they operate using only UTF-8 character set since both databases are in UTF-8 I think console code page warning message is not related to this issue. Andrus.