Re: Accent insensitive search

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Accent insensitive search
Дата
Msg-id 20070622160935.GN8949@alvh.no-ip.org
обсуждение исходный текст
Ответ на Accent insensitive search  (Diego Manilla Suárez <diego.manilla@xeridia.com>)
Список 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 по дате отправления:

Предыдущее
От: Fernando Schapachnik
Дата:
Сообщение: Optimizer problem in 8.1.6
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Optimizer problem in 8.1.6