Re: Server-side support of all encodings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Server-side support of all encodings
Date
Msg-id 2099.1174875627@sss.pgh.pa.us
Whole thread Raw
In response to Server-side support of all encodings  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Responses Re: Server-side support of all encodings  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> 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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Arrays of Complex Types
Next
From: ITAGAKI Takahiro
Date:
Subject: Re: Server-side support of all encodings