> > 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
- [HACKERS] Re: [PATCHES] A Patch for MIC to EUC_TW code co... Tatsuo Ishii
- Re: [HACKERS] Re: [PATCHES] A Patch for MIC to EUC_T... Bruce Momjian
- Re: [HACKERS] Re: [PATCHES] A Patch for MIC to E... Tatsuo Ishii
- [HACKERS] Re: [PATCHES] A Patch for MIC to EUC_TW co... Chih-Chang Hsieh
- [HACKERS] Re: [PATCHES] A Patch for MIC to EUC_T... Tatsuo Ishii
- [HACKERS] About PQsetClientEncoding(),"... Tatsuo Ishii
- [HACKERS] About PQsetClientEncoding(),&q... Chih-Chang Hsieh
- [HACKERS] Re: About PQsetClientEnco... Tatsuo Ishii
- Re: [HACKERS] About PQsetClientEnco... Bruce Momjian
- Re: [HACKERS] About PQsetClient... Tatsuo Ishii
- Re: [HACKERS] About PQsetCl... Chih-Chang Hsieh