Re: UTF-8 and LIKE vs = - Mailing list pgsql-general

From Tatsuo Ishii
Subject Re: UTF-8 and LIKE vs =
Date
Msg-id 20040824.151354.68036906.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: UTF-8 and LIKE vs =  (Joel <rees@ddcom.co.jp>)
Responses Re: UTF-8 and LIKE vs =  (Joel <rees@ddcom.co.jp>)
Re: UTF-8 and LIKE vs =  (David Wheeler <david@kineticode.com>)
List pgsql-general
> > > The following should end up posted as shift-JIS, but
> > >
> > > テスト
> > > and
> > > てすと
> > >
> > > should collate the same under some contexts, since it's more-or-less
> > > equivalent to a variation in case.
> >
> > Do you mean if you search for
> >
> >    SELECT * FROM keyword where name = 'テスト';
> >
> > You might expect it to return a row with name set to 'てすと'?
>
> If the locale machinery iw functioning correctly (and if I understand
> correctly), there ought to be a setting that would allow those to
> collate to the same point.
>
> 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.)

I'm not sure what the point of the original question was, but I know
that

    SELECT * FROM keyword where name = 'テスト';

should work if locale = C and encoding is either EUC_JP or UTF-8 on my
standard Linux box (of course I did initdb --no-locale).
--
Tatsuo Ishii

pgsql-general by date:

Previous
From: Joel
Date:
Subject: Re: UTF-8 and LIKE vs =
Next
From: Joel
Date:
Subject: Re: UTF-8 and LIKE vs =