Re: Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport
Дата
Msg-id 20001222171001Q.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: [PATCHES] A Patch for MIC to EUC_TW code converting inmbsupport  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список 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 по дате отправления:

Предыдущее
От: "Oliver Elphick"
Дата:
Сообщение: Re: (7.1) BIT datatype
Следующее
От: Peter Mount
Дата:
Сообщение: RE: Status of JDBC Interface