<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.mbstring.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'intro.mbstring.php',
    1 => 'Вступ',
    2 => 'Вступ',
  ),
  'up' => 
  array (
    0 => 'book.mbstring.php',
    1 => 'Multibyte String',
  ),
  'prev' => 
  array (
    0 => 'book.mbstring.php',
    1 => 'Multibyte String',
  ),
  'next' => 
  array (
    0 => 'mbstring.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mbstring/book.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intro.mbstring" class="preface">
  <h1 class="title">Вступ</h1>
  <p class="para">
   While there are many languages in which every necessary character can
   be represented by a one-to-one mapping to an 8-bit value, there are also
   several languages which require so many characters for written
   communication that they cannot be contained within the range a mere byte 
   can code (A byte is made up of eight bits. Each bit can contain only two 
   distinct values, one or zero. Because of this, a byte can only represent 
   256 unique values (two to the power of eight)). Multibyte character 
   encoding schemes were developed to express more than 256 characters 
   in the regular bytewise coding system.
  </p>
  <p class="para">
   When you manipulate (trim, split, splice, etc.) strings encoded in a
   multibyte encoding, you need to use special functions since two or more
   consecutive bytes may represent a single character in such encoding
   schemes. Otherwise, if you apply a non-multibyte-aware string function
   to the string, it probably fails to detect the beginning or ending of
   the multibyte character and ends up with a corrupted garbage string that
   most likely loses its original meaning.
  </p>
  <p class="para">
   <code class="literal">mbstring</code> provides multibyte specific string functions 
   that help you deal with multibyte encodings in PHP. In addition to that, 
   <code class="literal">mbstring</code> handles character encoding conversion between 
   the possible encoding pairs. <code class="literal">mbstring</code> is designed to 
   handle Unicode-based encodings such as UTF-8 and UCS-2 and many 
   single-byte encodings for convenience (listed in <a href="mbstring.supported-encodings.php" class="link">Supported Character Encodings</a>).
  </p>
 </div><?php manual_footer($setup); ?>