uTools-Manuals/docs/php/pg_client_encoding.html
2019-04-08 23:22:26 +08:00

39 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>取得客户端编码方式</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.pg-client-encoding" class="refentry">
<div class="refnamediv">
<h1 class="refname">pg_client_encoding</h1>
<p class="verinfo">(PHP 4 &gt;= 4.0.3, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">pg_client_encoding</span> &mdash; <span class="dc-title">
取得客户端编码方式
</span></p>
</div>
<div class="refsect1 unknown-unknown-unknown-seealsr" id="refsect1-function.pg-client-encoding-unknown-unknown-unknown-seealsr">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>pg_client_encoding</strong></span>
([ <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</code></span>
] ) : <span class="type">string</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>pg_client_encoding()</strong></span> 以字符串形式返回客户端编码。所返回的字符串为以下之一SQL_ASCIIEUC_JPEUC_CNEUC_KREUC_TWUNICODEMULE_INTERNALLATINX (X=1...9)KOI8WINALTSJISBIG5WIN1250。
</p>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
本函数需要 PHP-4.0.3 或以上版本以及 PostgreSQL-7.0 或以上版本。如果在编译 libpq 时没有加入多字节编码支持,则 <span class="function"><a href="pg_set_client_encoding.html" class="function">pg_set_client_encoding()</a></span> 总是返回 &quot;SQL_ASCII&quot;。所支持的编码方式取决于 PostgreSQL 的版本。详情参见 PostgreSQL 手册如何加入多字节支持以及所支持的编码方式。
</p>
<p class="para">
本函数以前被称为 <span class="function"><strong>pg_clientencoding()</strong></span>
</p>
</p></blockquote>
<p class="para">
参见 <span class="function"><a href="pg_set_client_encoding.html" class="function">pg_set_client_encoding()</a></span>
</p>
</div>
</div></div></div></body></html>