Skip site navigation (1) Skip section navigation (2)

How to extend server side encoding GBK

From: Xiong He <iihero(at)qq(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: How to extend server side encoding GBK
Date: 2012-07-02 14:57:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I just noticed that PG not support the following encoding: 
	/* followings are for client encoding only */
	PG_SJIS,					/* Shift JIS (Winindows-932) */
	PG_BIG5,					/* Big5 (Windows-950) */
	PG_GBK,						/* GBK (Windows-936) */
	PG_UHC,						/* UHC (Windows-949) */
	PG_GB18030,					/* GB18030 */
	PG_JOHAB,					/* EUC for Korean JOHAB */
	PG_SHIFT_JIS_2004,			/* Shift-JIS-2004 */
	_PG_LAST_ENCODING_			/* mark only */

But  PG_GBK and PG_GB18030 are very popular in Chinese charset.
Could anybody give some hints about how to extend it in PG source code?

Although UTF-8 and PG_EUC_CN is ready.  But I think it's useful to implement the support of PG_GBK.

Any help is appreciated. Thanks in advance.


pgsql-hackers by date

Next:From: Tom LaneDate: 2012-07-02 15:06:16
Subject: Re: pgsql: Make walsender more responsive.
Previous:From: Kohei KaiGaiDate: 2012-07-02 14:55:39
Subject: User-Id Tracking when Portal was started

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group