From: Andrus <kobruleht2@hot.ee>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
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
Message-ID: <0FD25821F38B4B45BC8C56140A735713@dell2> (raw)
In-Reply-To: <2a30dc9b-79e1-69c6-3360-3cf9ac326b7e@aklaver.com>
References: <F4D04849032C4464B8FF17CB0F896F9E@dell2>
<22672.1585442578@sss.pgh.pa.us>
<1046C47572F54F1BA5A726A49BAC6F3C@dell2>
<2a30dc9b-79e1-69c6-3360-3cf9ac326b7e@aklaver.com>
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-w...
>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.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kobruleht2@hot.ee, tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com
Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
In-Reply-To: <0FD25821F38B4B45BC8C56140A735713@dell2>
References: <F4D04849032C4464B8FF17CB0F896F9E@dell2> <22672.1585442578@sss.pgh.pa.us> <1046C47572F54F1BA5A726A49BAC6F3C@dell2> <2a30dc9b-79e1-69c6-3360-3cf9ac326b7e@aklaver.com> <0FD25821F38B4B45BC8C56140A735713@dell2>
* 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