Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ft1Vk-0008SA-4I for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Aug 2018 02:07:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ft1Vh-0004Xk-UJ for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Aug 2018 02:07:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ft1Vh-0004Xd-LF for pgsql-bugs@lists.postgresql.org; Fri, 24 Aug 2018 02:07:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ft1Vf-0000iW-5x for pgsql-bugs@lists.postgresql.org; Fri, 24 Aug 2018 02:07:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7O27UCm025860; Thu, 23 Aug 2018 22:07:30 -0400 From: Tom Lane To: Thomas Munro cc: Michael Paquier , Tasos Maschalidis , PostgreSQL mailing lists Subject: Re: BUG #15347: Unaccent for greek characters does not work In-reply-to: References: <153495048900.1368.11566580687623014380@wrigleys.postgresql.org> <20180824001239.GD30782@paquier.xyz> Comments: In-reply-to Thomas Munro message dated "Fri, 24 Aug 2018 12:16:16 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25858.1535076450.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Aug 2018 22:07:30 -0400 Message-ID: <25859.1535076450@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Fri, Aug 24, 2018 at 12:12 PM, Michael Paquier = wrote: >> Perhaps it would be better to avoid non-ASCII characters in this script= ? > You mean in the Python script? Why? At the top it has a PEP-263 > encoding declaration: > # -*- coding: utf-8 -*- What happens if someone tries to view this in a non-UTF8 encoding? As a comparison point, we generally avoid using non-ASCII characters directly in the SGML docs; we write out the appropriate SGML entity instead. I think we should try to do the equivalent thing here --- I assume python has some way to write "U+nnnn" or some such. regards, tom lane