Re: UTF-8 and LIKE vs =

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: UTF-8 and LIKE vs =
Дата
Msg-id 20040825.112132.08316551.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: UTF-8 and LIKE vs =  (Joel <rees@ddcom.co.jp>)
Ответы Re: UTF-8 and LIKE vs =  (David Wheeler <david@kineticode.com>)
Список pgsql-general
> > > I'm not sure what the settings would be, or if it's fully funtional
> > > yet.
> > > Maybe Tatsuo would know? (Hope he doesn't mind me CC-ing him.)
> > >
> > > So, what was the original language and text of the queries you started
> > > this thread with?
> >
> > Korean, but the database I was using has data in 10 different languages
> > in it, making any locale-specific collation useless.

I don't know exactly what kind of encodings you wish to use, but I
think MULE_INTERNAL might help you. It's actually mixture of various
encodings with encoding-prefix added to each letter.  For example if
you can mix KS5601 (Korean) and Japanese Kanji (JIS X0208) in a *same*
column. So if you don't have problem with sorting KS5601/JIS X0208
with C locale, you should not have problem with MULE_INTERNAL too in
theory.

Remaining problem is how to display the Korean-Japanese mixed string
in your client, but this is not PostgreSQL's problem, of
course. However you could write your own conversion function
MULE_INTERNAL <--> UTF-8, and might be able to solve the problem.
--
Tatsuo Ishii

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

Предыдущее
От: Joel
Дата:
Сообщение: Re: UTF-8 and LIKE vs =
Следующее
От: Carlos Moreno
Дата:
Сообщение: Re: Deadlocks caused by referential integrity checks