Re: Question about encoding

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: "Daniel Serodio *EXTERN*" <dserodio(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Question about encoding
Date: 2006-11-28 11:36:38
Message-ID: 52EF20B2E3209443BC37736D00C3C1380BA5FEE5@EXADV1.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2006-11-28 13:11:31 Re: How to increace nightly backup speed
Previous Message Terry Yapt 2006-11-28 10:59:46 Re: [Windows] Pg_Restore on 8.1.5 and so on...