Re: Accent insensitive search - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Accent insensitive search
Date
Msg-id 20070622160935.GN8949@alvh.no-ip.org
Whole thread Raw
In response to Accent insensitive search  (Diego Manilla Suárez <diego.manilla@xeridia.com>)
List pgsql-general
Diego Manilla Suárez wrote:
> Hi. I have a few databases created with UNICODE encoding, and I would
> like to be able to search with accent insensitivity. There's something
> in Oracle (NLS_COMP, NLS_SORT) and SQL Server (don't remember) to do
> this, but I found nothing in PostgreSQL, just the 'to_ascii' function,
> which AFAIK, doesn't work with UNICODE.

to_ascii() doesn't work with UTF-8, but you can use convert() to turn
the UTF8 text into Latin-1 and then use to_ascii() to remove the funny
bits.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Fernando Schapachnik
Date:
Subject: Optimizer problem in 8.1.6
Next
From: Michael Glaesemann
Date:
Subject: Re: Optimizer problem in 8.1.6