From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Diego Manilla Suárez <diego(dot)manilla(at)xeridia(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Accent insensitive search |
Date: | 2007-06-22 16:09:35 |
Message-ID: | 20070622160935.GN8949@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Glaesemann | 2007-06-22 16:10:39 | Re: Optimizer problem in 8.1.6 |
Previous Message | Charles Mortell | 2007-06-22 15:50:44 | How determine a Views dependents |