Re: Question about encoding - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Question about encoding
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380BA5FEE5@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to Question about encoding  ("Daniel Serodio" <dserodio@gmail.com>)
List pgsql-general
> Is it possible to configure PostgreSQL so that a " LIKE 'a' " query
> will match a 'á' value, ie, make it accent-insensitive ?

Maybe something like this can help you:

test=> select to_ascii(convert('tête-à-tête français', 'LATIN9'),'LATIN9');
       to_ascii
----------------------
 tete-a-tete francais
(1 row)

If your database encoding is already LATIN9, you can omit the convert().

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: George Weaver
Date:
Subject: Re: A generic trigger to log chanes on database tables
Next
From: "Olexandr Melnyk"
Date:
Subject: Re: Development of cross-platform GUI for Open Source DBs