Re: UTF-8 and LIKE vs =

Поиск
Список
Период
Сортировка
Искать
От
David Wheeler
Тема
Re: UTF-8 and LIKE vs =
Дата
Msg-id
10ED3FEF-F545-11D8-990D-000A95972D84@kineticode.com
Ответ на
Re: UTF-8 and LIKE vs = (Peter Eisentraut)
Список
Дерево обсуждения
UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Ian Barwick <barwick@gmail.com>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Markus Bertheau <twanger@bluetwanger.de>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Ian Barwick <barwick@gmail.com>
Re: UTF-8 and LIKE vs = Tom Lane <tgl@sss.pgh.pa.us>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Tom Lane <tgl@sss.pgh.pa.us>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Tom Lane <tgl@sss.pgh.pa.us>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Tom Lane <tgl@sss.pgh.pa.us>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Tom Lane <tgl@sss.pgh.pa.us>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Tim Allen <tim@proximity.com.au>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Peter Eisentraut <peter_e@gmx.net>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
Re: UTF-8 and LIKE vs = Robert Treat <xzilla@users.sourceforge.net>
Re: UTF-8 and LIKE vs = David Wheeler <david@kineticode.com>
On Aug 23, 2004, at 1:22 PM, Peter Eisentraut wrote:

> Because LIKE does a character-by-character matching and = uses the
> operating system locale, which could do anything.  If you set the
> locale to C, you should get matching results.  Which one is "better"
> depends on the semantics of the language, which I cannot judge here.

Thanks. So I need to set the locale to C and then LIKE will work 
properly? How do I go about doing that? I can see these options:

LC_COLLATE
String sort order

LC_CTYPE
Character classification (What is a letter? The upper-case equivalent?)

LC_MESSAGES
Language of messages

LC_MONETARY
Formatting of currency amounts

LC_NUMERIC
Formatting of numbers

LC_TIME
Formatting of dates and times

Is one of these the one I need to set?

Thanks,

David

В списке pgsql-general по дате отправления
От: Joshua D. Drake
Дата:
От: Ian Barwick
Дата:
Сообщение: Re: UTF-8 and LIKE vs =
FAQ