Re: Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport
Date
Msg-id 20001222171001Q.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
> > 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

pgsql-hackers by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: (7.1) BIT datatype
Next
From: Peter Mount
Date:
Subject: RE: Status of JDBC Interface