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
55 lines
1.8 KiB
XML
Executable File
55 lines
1.8 KiB
XML
Executable File
<?xml version="1.0" encoding="gb2312"?>
|
||
<!-- $Revision: 1.3 $ -->
|
||
<!-- $Author: dallas $ -->
|
||
<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready -->
|
||
<refentry id="function.pg-client-encoding">
|
||
<refnamediv>
|
||
<refname>pg_client_encoding</refname>
|
||
<refpurpose>
|
||
取得客户端编码方式
|
||
</refpurpose>
|
||
</refnamediv>
|
||
<refsect1>
|
||
<title>说明</title>
|
||
<methodsynopsis>
|
||
<type>string</type><methodname>pg_client_encoding</methodname>
|
||
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
<function>pg_client_encoding</function> 以字符串形式返回客户端编码。所返回的字符串为以下之一: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>
|
||
本函数需要 PHP-4.0.3 或以上版本以及 PostgreSQL-7.0 或以上版本。如果在编译 libpq 时没有加入多字节编码支持,则 <function>pg_set_client_encoding</function> 总是返回 "SQL_ASCII"。所支持的编码方式取决于 PostgreSQL 的版本。详情参见 PostgreSQL 手册如何加入多字节支持以及所支持的编码方式。
|
||
</para>
|
||
<para>
|
||
本函数以前被称为 <function>pg_clientencoding</function>。
|
||
</para>
|
||
</note>
|
||
<para>
|
||
参见 <function>pg_set_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
|
||
-->
|