Обсуждение: I can't create a new database with GB18030 encoding

Поиск
Список
Период
Сортировка

I can't create a new database with GB18030 encoding

От
Huang GeHua
Дата:
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

От
Tom Lane
Дата:
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