mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
73 lines
2.5 KiB
HTML
73 lines
2.5 KiB
HTML
<!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>Specify the character encoding in which the messages from the DOMAIN message catalog will be returned</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.bind-textdomain-codeset" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">bind_textdomain_codeset</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">bind_textdomain_codeset</span> — <span class="dc-title">Specify the character encoding in which the messages from the DOMAIN message catalog will be returned</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.bind-textdomain-codeset-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>bind_textdomain_codeset</strong></span>
|
|
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$domain</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$codeset</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
With <span class="function"><strong>bind_textdomain_codeset()</strong></span>, you can set in which
|
|
encoding will be messages from <code class="parameter">domain</code> returned by
|
|
<span class="function"><a href="gettext.html" class="function">gettext()</a></span> and similar functions.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.bind-textdomain-codeset-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">domain</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The domain
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">codeset</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The code set
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.bind-textdomain-codeset-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
A <span class="type"><a href="language.types.string.html" class="type string">string</a></span> on success.
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |