Re: BUG #15347: Unaccent for greek characters does not work
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Tasos Maschalidis <TaS.O.S@hotmail.com>,
PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2018-08-24T02:07:30Z
Lists: pgsql-bugs
Thomas Munro <thomas.munro@enterprisedb.com> writes: > On Fri, Aug 24, 2018 at 12:12 PM, Michael Paquier <michael@paquier.xyz> 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
Commits
-
Add Greek characters to unaccent.rules.
- 5e8d670c3135 12.0 landed