Re: Server-side support of all encodings

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Server-side support of all encodings
Дата
Msg-id 20070326112248.6507.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Server-side support of all encodings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Server-side support of all encodings  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> > PostgreSQL suppots SJIS, BIG5, GBK, UHC and GB18030 as client encodings,
> > but we cannot use them as server encodings. Are there any reason for it?
> 
> Very much so --- they aren't safe ASCII-supersets, and thus for example
> the parser will fail on them.  Backend encodings must have the property
> that all bytes of a multibyte character are >= 128.

But then, PG_JOHAB have already infringed it. Please see johab_to_utf8.map.
Trailing bytes of JOHAB can be less than 128.
It's true that other server-supported encodings use only characters >= 128.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Server-side support of all encodings
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Server-side support of all encodings