Re: Unicode normalization

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Unicode normalization
Дата
Msg-id 20090916190149.GR19673@fetter.org
обсуждение исходный текст
Ответ на Unicode normalization  (Andreas Kalsch <andreaskalsch@gmx.de>)
Ответы Re: Unicode normalization  (Andreas Kalsch <andreaskalsch@gmx.de>)
Список pgsql-general
On Wed, Sep 16, 2009 at 07:20:21PM +0200, Andreas Kalsch wrote:
> Has somebody integrated Unicode normalization into Postgres? if not, I
> would have to implement my own function by using this CPAN module:
> http://search.cpan.org/~sadahiro/Unicode-Normalize-1.03/ .
>
> I need a function which removes all diacritics (1) and transforms some
> characters to a more compatible form (2) to get a better index on
> strings.
>
> Best,
>
> Andi
>
>
> 1) à,ä, ... => a
> 2) ø => o, ƒ => f, ª => a

You mean something like this?

http://wiki.postgresql.org/wiki/Strip_accents_from_strings%2C_and_output_in_lowercase

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: pgadmin is changing pgpass.conf
Следующее
От: Andreas Kalsch
Дата:
Сообщение: Re: Unicode normalization