Thread: I can't create a new database with GB18030 encoding

I can't create a new database with GB18030 encoding

From
Huang GeHua
Date:
I want create a new database with the GB18030 encoding.But the
pgAdminIII tell a error "GB18030 is not a valid encoding name".How can
i do for it?

Re: I can't create a new database with GB18030 encoding

From
Tom Lane
Date:
Huang GeHua <pluscn@gmail.com> writes:
> I want create a new database with the GB18030 encoding.But the
> pgAdminIII tell a error "GB18030 is not a valid encoding name".How can
> i do for it?

The docs say that GB18030 is supported as a client-side encoding only.
So pick any superset encoding (UTF8 maybe?) as the database encoding,
and then set client_encoding to GB18030.

            regards, tom lane