added setclientencoding and clientencoding to pgsql.xml .

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32380 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Rui Hirokawa 2000-09-10 07:08:55 +00:00
parent 7409dc748d
commit d9025f3faf

View file

@ -1110,6 +1110,83 @@ for ($i=0; $i<$num; $i++) {
</refsect1>
</refentry>
<refentry id="function.pg-setclientencoding">
<refnamediv>
<refname>pg_setclientencoding</refname>
<refpurpose>
Set the client encoding
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>pg_setclientencoding</function></funcdef>
<paramdef>int
<parameter><optional>connection</optional></parameter>
</paramdef>
<paramdef>string <parameter>encoding</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
The function set the client encoding and return 0 if success or
-1 if error.
</para>
<para>
<parameter>encoding</parameter> is the client
encoding and can be either :
SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE,
MULE_INTERNAL, LATINX (X=1...9), KOI8, WIN, ALT,
SJIS, BIG5, WIN1250.
</para>
<note>
<para>
This function requires PHP-4.0.2 or higher and PostgreSQL-7.0 or
higher.
</para>
</note>
<para>
See also <function>pg_clientencoding</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.pg-clientencoding">
<refnamediv>
<refname>pg_clientencoding</refname>
<refpurpose>
Get the client encoding
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>pg_clientencoding</function></funcdef>
<paramdef>int
<parameter><optional>connection</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
<para>
The functions returns the client encoding as the string. The
returned string should be either :
SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE,
MULE_INTERNAL, LATINX (X=1...9), KOI8, WIN, ALT,
SJIS, BIG5, WIN1250.
</para>
<note>
<para>
This function requires PHP-4.0.2 or higher and PostgreSQL-7.0 or
higher.
</para>
</note>
<para>
See also <function>pg_setclientencoding</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.pg-trace">
<refnamediv>
<refname>pg_trace</refname>