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.89) (envelope-from ) id 1hH9TZ-0001DP-Gz for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Apr 2019 16:01:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hH9TY-0001hx-86 for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Apr 2019 16:01: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 1hH9TX-0001de-Ud for pgsql-bugs@lists.postgresql.org; Thu, 18 Apr 2019 16:01:23 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH9TV-0005st-2g for pgsql-bugs@lists.postgresql.org; Thu, 18 Apr 2019 16:01:23 +0000 Received: by mail-qk1-x744.google.com with SMTP id b74so1435467qkg.9 for ; Thu, 18 Apr 2019 09:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=M2C+iS4jcnflRvwWqSdPEbZpspB75fNehjLrgGzdGT8=; b=USlq0Yo0wKNveO+HRophpFLIFXIti5FJtJIxatobOVjG8mTiRCCRJ/G562GaC2P3DH 3SJmk18Q18+JlknKLQhQhCk7kK/Hl6oKiwcA4SI8exVwRYY0pE5aQiSrTGcavGRVMwDj kZsdDC1Xj3sX0BsxDAI9IX4e628rYGyadgPJJxjb5AW35IZsMZW3jRij+9iFXDOiGe1O cl8FyIRYLBL29b6Tmmxt70m7QRwU/uk03m+GFOrKladxhiGKlYeDOGX40X+yxpNRrr6N jQmgqvHb5JyUqe6bo64A/NOirRTZQokM+KLYtPiQ9vc+UwPO2xlQdDhuuODqFUtFEGlk rcnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=M2C+iS4jcnflRvwWqSdPEbZpspB75fNehjLrgGzdGT8=; b=iL6jspw9K9KX2QRJFM3qRe/MvC4iRC20i4gPbkGkHE0kSVEt6V502bzEy60k7CoHi6 KqKMqHEyFxPb8wZIfCH9/HjVOXMYPLVg/eirqgnXjW8nsmnWm6o4reJ7H9m+vP9owLEX AtJ7QmLBfP8df+Xqii+pw5ZNpfpSN8yBlNEu51IKGLnUh+BmwPGb797uAXah6rzMUeRY Pmxaxkk+KG/S4jp9qLnLShJY8yARuxN8tCaRTnk/d2ifpP1Ia/Hf2Gr4BFVCE1WEp+O6 q0jgOu4ajSdG5af6meud01ZSy+hEVMIXL41ai82REoKZHWOcRF52POLNtfjqpvwbvzNn k4+g== X-Gm-Message-State: APjAAAW/VL2XU6Zk1WXT1yOssNqf+hoNBElyTphNXHE4Xm0RryscRiKb eGJrv887Lx17+G1eDbqOmhcLGQ== X-Google-Smtp-Source: APXvYqxLVJa7ZSltPiFp704xiSn/GkV2tMcOciK7fmIX7EMB4hzA17Ldued1CwpgsGm+PgsOPu9ykw== X-Received: by 2002:a37:4ed5:: with SMTP id c204mr75387190qkb.68.1555603279221; Thu, 18 Apr 2019 09:01:19 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id y34sm1498339qta.96.2019.04.18.09.01.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 09:01:18 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id AEFAB12074F; Thu, 18 Apr 2019 12:01:16 -0400 (-04) Date: Thu, 18 Apr 2019 12:01:16 -0400 From: Alvaro Herrera To: Eugene Podshivalov Cc: Bruce Momjian , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15772: Some messages in log files are in ANSI encoding while server encoding is UTF8 Message-ID: <20190418160116.GA13165@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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