pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tatsuo Ishii <t-ishii@sra.co.jp>
To: cch@cc.kmu.edu.tw
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport
Date: Fri, 22 Dec 2000 17:10:01 +0900
Message-ID: <20001222171001Q.t-ishii@sra.co.jp> (raw)
In-Reply-To: <20001117112855H.t-ishii@sra.co.jp>
References: <20001114145434O.t-ishii@sra.co.jp>
	<3A11E40A.47E528D@cc.kmu.edu.tw>
	<20001117112855H.t-ishii@sra.co.jp>

> > If our application for input is written in PHP (4.0.2)
> > How do we notify PostgreSQL that the frontend encoding
> > is 'BIG5' ? (pg_exec("\encoding BIG5") failed.)
> 
> I know there are some patches for supporting \encoding in PHP. Do you
> want to get them?

Sorry for the delay. Here are the patches I promised against PHP
3.0.15 or later.

To set the client encoding to BIG5:

pg_setclientencoding($cid, "BIG5");

  ($cid is the connection id)

To get the current client encoding:

pg_clientencoding($cid);

Note that these fucntions are already included in the latest PHP4.
--
Tatsuo Ishii

Attachments:

  php.patch.gz (application/octet-stream, 1.1K) download

view thread (10+ messages)  latest in thread

Message-ID: <20001222171001Q.t-ishii@sra.co.jp>
Permalink:  ../20001222171001Q.t-ishii@sra.co.jp/
Also on:    postgresql.org/message-id/20001222171001Q.t-ishii@sra.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: t-ishii@sra.co.jp, cch@cc.kmu.edu.tw, pgsql-hackers@postgresql.org
  Subject: Re: Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport
  In-Reply-To: <20001222171001Q.t-ishii@sra.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox