sorting in UNICODE table

Поиск
Список
Период
Сортировка
Искать

sorting in UNICODE table

От:
Alex Guryanow <gav@nlr.ru>
Дата:
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


Re: sorting in UNICODE table

От:
Tatsuo Ishii <t-ishii@sra.co.jp>
Дата:
> 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

FAQ