I can't create a new database with GB18030 encoding

Started by Huang GeHuaalmost 21 years ago2 messagesgeneral
Jump to latest
#1Huang GeHua
pluscn@gmail.com

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?

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Huang GeHua (#1)
Re: I can't create a new database with GB18030 encoding

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