array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.imap-utf8.php', 1 => 'imap_utf8', ), 'up' => array ( 0 => 'ref.imap.php', 1 => 'IMAP Funciones', ), 'prev' => array ( 0 => 'function.imap-utf8-to-mutf7.php', 1 => 'imap_utf8_to_mutf7', ), 'next' => array ( 0 => 'class.imap-connection.php', 1 => 'IMAP\\Connection', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imap/functions/imap-utf8.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_utf8 — Converts MIME-encoded text to UTF-8
Converts the given mime_encoded_text
to
UTF-8, if the declared charset is known to libc-client.
Otherwise the given text is decoded, but not converted to UTF-8.
Returns the decoded string, if possible converted to UTF-8.
Ejemplo #1 Basic imap_utf8() Usage
<?php
echo imap_utf8("Johannes =?ISO-8859-1?Q?Schl=FCter?=");
?>
El resultado del ejemplo sería algo similar a:
Johannes Schlüter