Re: UHC as a server encoding?

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: UHC as a server encoding?
Дата
Msg-id 49FA9CDF.2060501@enterprisedb.com
обсуждение исходный текст
Ответ на UHC as a server encoding?  (Chuck McDevitt <cmcdevitt@greenplum.com>)
Список pgsql-hackers
Chuck McDevitt wrote:
> Why are certain character encodings not legal for the server_encoding?
> 
> For example, we allow EUC_KR, but disallow UHC, which is a superset of EUC_KR.
> 
> What are the rules for what is or is not allowed as server_encoding?

A server-encoding must have the property that all but the first byte of 
a multi-byte character have the high bit set. IOW, by looking at an 
arbitrary byte in a string, you must be able to tell if it's part of a 
multi-byte character or an independent single byte character.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Laurent Laborde
Дата:
Сообщение: Perl coding style in postgresql
Следующее
От: Dave Page
Дата:
Сообщение: Re: windows shared memory error