pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
sorting in UNICODE table
2+ messages / 2 participants
[nested] [flat]

* sorting in UNICODE table
@ 2000-08-24 13:44  Alex Guryanow <gav@nlr.ru>
  0 siblings, 1 reply; 2+ messages in thread

From: Alex Guryanow @ 2000-08-24 13:44 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-sql

Hi,

I'm use postgresql-7.0.2. It's compiled with unicode support
(./configure --enable-multibyte=UNICODE ...)
I have a table which contains both latin and non-latin letters. All they are in UTF-8 encoding. When
I try to sort the rows

( SELECT * FROM my_table ORDER BY sort_field )

I receive strange error: the rows that begin with ascii symbols are ordered while all other - are not!

Why is this happen?

Regards,
Alex





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: sorting in UNICODE table
@ 2000-08-25 01:07  Tatsuo Ishii <t-ishii@sra.co.jp>
  parent: Alex Guryanow <gav@nlr.ru>
  0 siblings, 0 replies; 2+ messages in thread

From: Tatsuo Ishii @ 2000-08-25 01:07 UTC (permalink / raw)
  To: gav@nlr.ru; +Cc: pgsql-general@postgresql.org; pgsql-sql

> I'm use postgresql-7.0.2. It's compiled with unicode support
> (./configure --enable-multibyte=UNICODE ...)
> I have a table which contains both latin and non-latin letters. All they are in UTF-8 encoding. When
> I try to sort the rows
> 
> ( SELECT * FROM my_table ORDER BY sort_field )
> 
> I receive strange error: the rows that begin with ascii symbols are ordered while all other - are not!

I guess this is because UTF-8 strings are sorted in the order of the
physical representation. Can you show me sample data and its desired
order?

--
Tatsuo Ishii




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-08-25 01:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-08-24 13:44 sorting in UNICODE table Alex Guryanow <gav@nlr.ru>
2000-08-25 01:07 ` Tatsuo Ishii <t-ishii@sra.co.jp>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox