<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.gettext.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.bind-textdomain-codeset.php',
    1 => 'bind_textdomain_codeset',
    2 => 'Specify or get the character encoding in which the messages from the DOMAIN message catalog will be returned',
  ),
  'up' => 
  array (
    0 => 'ref.gettext.php',
    1 => 'Функції Gettext',
  ),
  'prev' => 
  array (
    0 => 'function.-.php',
    1 => '_',
  ),
  'next' => 
  array (
    0 => 'function.bindtextdomain.php',
    1 => 'bindtextdomain',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/gettext/functions/bind-textdomain-codeset.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.bind-textdomain-codeset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">bind_textdomain_codeset</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">bind_textdomain_codeset</span> &mdash; <span class="dc-title">Specify or get 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"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$domain</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$codeset</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>bind_textdomain_codeset()</strong></span> allows to set or get the
   encoding in which messages from <code class="parameter">domain</code> will be returned by
   <span class="function"><a href="function.gettext.php" 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.
       If <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, the currently set encoding is returned.
      </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.php" class="type string">string</a></span> on success.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.bind-textdomain-codeset-errors">
  <h3 class="title">Помилки/виключення</h3>
  <p class="simpara">
   Throws a <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> if <code class="parameter">domain</code>
   is the empty <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.bind-textdomain-codeset-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       Now throws a <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> if <code class="parameter">domain</code>
       is the empty <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       <code class="parameter">codeset</code> is optional now.
       Previously, the parameter always had to be specified.
      </td>
     </tr>

     <tr>
      <td>8.0.3</td>
      <td>
       <code class="parameter">codeset</code> is nullable now.
       Previously, it was not possible to retrieve the currently set encoding.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.bind-textdomain-codeset-notes">
  <h3 class="title">Примітки</h3>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <p class="para">
    The <span class="function"><strong>bind_textdomain_codeset()</strong></span> information is maintained per process,
    not per thread.
   </p>
  </p></blockquote>
 </div>

</div><?php manual_footer($setup); ?>