<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.imap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.imap-utf8.php',
    1 => 'imap_utf8',
    2 => 'Converts MIME-encoded text to UTF-8',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP Функції',
  ),
  'prev' => 
  array (
    0 => 'function.imap-utf7-encode.php',
    1 => 'imap_utf7_encode',
  ),
  'next' => 
  array (
    0 => 'function.imap-utf8-to-mutf7.php',
    1 => 'imap_utf8_to_mutf7',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imap/functions/imap-utf8.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-utf8" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_utf8</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_utf8</span> &mdash; <span class="dc-title">Converts MIME-encoded text to UTF-8</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imap-utf8-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_utf8</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$mime_encoded_text</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Converts the given <code class="parameter">mime_encoded_text</code> to
   UTF-8, if the declared charset is known to libc-client.
   Otherwise the given text is decoded, but not converted to UTF-8.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.imap-utf8-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">mime_encoded_text</code></dt>
     <dd>
      <p class="para">
       A MIME encoded string. MIME encoding method and the UTF-8 
       specification are described in <a href="https://datatracker.ietf.org/doc/html/rfc2047" class="link external">&raquo;&nbsp;RFC2047</a> and <a href="https://datatracker.ietf.org/doc/html/rfc2044" class="link external">&raquo;&nbsp;RFC2044</a> respectively.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.imap-utf8-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns the decoded string, if possible converted to UTF-8.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.imap-utf8-examples">
  <h3 class="title">Приклади</h3>
  <div class="example" id="imap-utf8.example.basic">
   <p><strong>Приклад #1 Basic <span class="function"><strong>imap_utf8()</strong></span> Usage</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">imap_utf8</span><span style="color: #007700">(</span><span style="color: #DD0000">"Johannes =?ISO-8859-1?Q?Schl=FCter?="</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Поданий вище приклад виведе щось
схоже на:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Johannes Schlüter</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.imap-utf8-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-mime-header-decode.php" class="function" rel="rdfs-seeAlso">imap_mime_header_decode()</a> - Decode MIME header elements</span></li>
   </ul>
  </p>
 </div>

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