Re: Seaching without accents - Mailing list pgsql-general

From Marco Lazzeri
Subject Re: Seaching without accents
Date
Msg-id 1075297875.2490.33.camel@macbeth.intranet.noze.it
Whole thread Raw
In response to Seaching without accents  ("Augusto Cesar Castoldi" <castoldi@npd.ufsc.br>)
List pgsql-general
Il mer, 2004-01-28 alle 13:42, Augusto Cesar Castoldi ha scritto:
> How can I configure postgreSQL to search without acents?

You have to write queries using TO_ASCII function and 'LATIN 1'
characters encoding.

Example:

SELECT * FROM my_table WHERE TO_ASCII(value, 'LATIN 1') =
TO_ASCII('Vàlùé', 'LATIN 1');

Cheers,
--
Marco Lazzeri


pgsql-general by date:

Previous
From: Franco Bruno Borghesi
Date:
Subject: Re: Logging all queries (almost there)
Next
From: Bernd Helmle
Date:
Subject: Re: Seaching without accents