Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 8676

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Introduction</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.mbstring.html">Multibyte String</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mbstring.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.mbstring.html">Multibyte String</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.mbstring" class="preface">
  <h1 class="title">Introduction</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">
   <em>mbstring</em> provides multibyte specific string functions 
   that help you deal with multibyte encodings in PHP. In addition to that, 
   <em>mbstring</em> handles character encoding conversion between 
   the possible encoding pairs. <em>mbstring</em> is designed to 
   handle Unicode-based encodings such as UTF-8 and UCS-2 and many 
   single-byte encodings for convenience (listed below).
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.mbstring.html">Multibyte String</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mbstring.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.mbstring.html">Multibyte String</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>