mirror of
https://github.com/php/doc-zh.git
synced 2026-03-26 08:02:16 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/zh/trunk@97440 c90b9560-bf6c-de11-be94-00142212c4b1
59 lines
1.9 KiB
XML
Executable File
59 lines
1.9 KiB
XML
Executable File
<?xml version="1.0" encoding="gb2312"?>
|
||
<!-- $Revision: 1.2 $ -->
|
||
<!-- $Author: dallas $ -->
|
||
<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
|
||
<refentry id="function.pg-set-client-encoding">
|
||
<refnamediv>
|
||
<refname>pg_set_client_encoding</refname>
|
||
<refpurpose>
|
||
设定客户端编码
|
||
</refpurpose>
|
||
</refnamediv>
|
||
<refsect1>
|
||
<title>说明</title>
|
||
<methodsynopsis>
|
||
<type>int</type><methodname>pg_set_client_encoding</methodname>
|
||
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
|
||
<methodparam><type>string</type><parameter>encoding</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
<function>pg_set_client_encoding</function> 设定客户端编码方式,成功返回 0,出错返回 -1。
|
||
</para>
|
||
<para>
|
||
<parameter>encoding</parameter> 是客户端的编码方式,可以为:SQL_ASCII,EUC_JP,EUC_CN,EUC_KR,EUC_TW,UNICODE,MULE_INTERNAL,LATINX (X=1...9),KOI8,WIN,ALT,SJIS,BIG5,WIN1250。可用的编码取决于 PostgreSQL 和 libpq 的版本。参考 PostgreSQL 手册查看你的 PostgreSQL 所支持的编码方式。
|
||
</para>
|
||
<note>
|
||
<para>
|
||
本函数需要 PHP 4.0.3 或以上版本以及 PostgreSQL 7.0 或以上版本。所支持的编码方式取决于 PostgreSQL 的版本,详情参考 PostgreSQL 手册。
|
||
</para>
|
||
<para>
|
||
本函数以前的名字为 <function>pg_setclientencoding</function>。
|
||
</para>
|
||
</note>
|
||
<para>
|
||
参见 <function>pg_client_encoding</function>。
|
||
</para>
|
||
</refsect1>
|
||
</refentry>
|
||
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"../../../../manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|