Re: BUG #15772: Some messages in log files are in ANSI encoding while server encoding is UTF8

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Eugene Podshivalov <yaugenka(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15772: Some messages in log files are in ANSI encoding while server encoding is UTF8
Date: 2019-04-18 16:01:16
Message-ID: 20190418160116.GA13165@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2019-Apr-18, Eugene Podshivalov wrote:

> Bruce,
> Here is a screenshot of how looks like when I open the log file in
> notepad++ and switch encoding from UTF8 to ANSI.
> [image: image.png]

I suppose you have databases with the single-byte encoding amidst your
UTF8 ones. AFAIK the log file registers the log entries in the same
encoding that the database uses. Different databases can use different
encodings.

That's pretty broken, but it's how it is.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-04-18 16:20:56 Re: BUG #15772: Some messages in log files are in ANSI encoding while server encoding is UTF8
Previous Message Bruce Momjian 2019-04-18 15:29:38 Re: BUG #15772: Some messages in log files are in ANSI encoding while server encoding is UTF8