| From: | "Augusto Cesar Castoldi" <castoldi(at)npd(dot)ufsc(dot)br> |
|---|---|
| To: | "'Marco Lazzeri'" <marcomail(at)noze(dot)it> |
| Cc: | <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Seaching without accents |
| Date: | 2004-01-28 14:29:11 |
| Message-ID: | 20040128142732.01CEB17E2@mail.npd.ufsc.br |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Ok, but I know that is an away to do it automatic
Without using the function TO_ASCII
Thanks,
Augusto
-----Original Message-----
From: Marco Lazzeri [mailto:marcomail(at)noze(dot)it]
Sent: Wednesday, January 28, 2004 11:51 AM
To: Augusto Cesar Castoldi
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Seaching without accents
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bernd Helmle | 2004-01-28 14:29:51 | Re: Seaching without accents |
| Previous Message | Net Llama! | 2004-01-28 14:04:48 | Re: Is autocommit=true bad? |