Re: Accent insensitive search?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Accent insensitive search?
Дата
Msg-id 20090318182436.GI3798@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Accent insensitive search?  (Thom Brown <thombrown@gmail.com>)
Ответы Re: Accent insensitive search?  (Christophe <xof@thebuild.com>)
Список pgsql-general
Thom Brown escribió:
> Here's an example of a function I might use (although I haven't actually got
> plperl installed, so can't test it myself, but you'll get the idea:
>
> CREATE OR REPLACE FUNCTION unaccent_string(text) RETURNS text AS $$
> my ($input_string) = @_;
> $input_string =~ s/[âãäåāăą]/a;
> $input_string =~ s/[ÁÂÃÄÅĀĂĄ]/A;

Hmm, if to_ascii() doesn't work, that's something worth some research.
Maybe the encoding config is broken, for example.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-general по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Accent insensitive search?
Следующее
От: Christophe
Дата:
Сообщение: Re: Accent insensitive search?