<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.strings.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.quoted-printable-decode.php',
    1 => 'quoted_printable_decode',
    2 => 'Convertit une cha&icirc;ne quoted-printable en cha&icirc;ne 8 bits',
  ),
  'up' => 
  array (
    0 => 'ref.strings.php',
    1 => 'Fonctions sur les cha&icirc;nes de caract&egrave;res',
  ),
  'prev' => 
  array (
    0 => 'function.printf.php',
    1 => 'printf',
  ),
  'next' => 
  array (
    0 => 'function.quoted-printable-encode.php',
    1 => 'quoted_printable_encode',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/strings/functions/quoted-printable-decode.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.quoted-printable-decode" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">quoted_printable_decode</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">quoted_printable_decode</span> &mdash; <span class="dc-title">Convertit une chaîne quoted-printable en chaîne 8 bits</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.quoted-printable-decode-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>quoted_printable_decode</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>quoted_printable_decode()</strong></span> retourne la chaîne de
   caractères <code class="parameter">str</code>, après l&#039;avoir convertie du format
   <code class="literal">quoted printable</code> binaire 8 bits (en accord avec la
   <a href="https://datatracker.ietf.org/doc/html/rfc2045" class="link external">&raquo;&nbsp;RFC2045</a>, section 6.7, et non pas la
   <a href="https://datatracker.ietf.org/doc/html/rfc2821" class="link external">&raquo;&nbsp;RFC2821</a>, section 4.5.2, pour que les
   points additionnels ne soient pas effacés du début de la ligne).
  </p>
  <p class="para">
   Cette fonction est similaire à <span class="function"><a href="function.imap-qprint.php" class="function">imap_qprint()</a></span>, hormis le fait
   qu&#039;elle n&#039;exige pas le module IMAP pour fonctionner.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.quoted-printable-decode-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">string</code></dt>
     <dd>
      <p class="para">
       La chaîne d&#039;entrée.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.quoted-printable-decode-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne la chaîne, convertie au format 8-bits.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.quoted-printable-decode-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Exemple avec <span class="function"><strong>quoted_printable_decode()</strong></span></strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> <br />$encoded </span><span style="color: #007700">= </span><span style="color: #0000BB">quoted_printable_encode</span><span style="color: #007700">(</span><span style="color: #DD0000">'Möchten Sie ein paar Äpfel?'</span><span style="color: #007700">);<br /> <br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$encoded</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">quoted_printable_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$encoded</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">string(37) &quot;M=C3=B6chten Sie ein paar =C3=84pfel?&quot;
string(29) &quot;Möchten Sie ein paar Äpfel?&quot;</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.quoted-printable-decode-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.quoted-printable-encode.php" class="function" rel="rdfs-seeAlso">quoted_printable_encode()</a> - Convertit une cha&icirc;ne 8 bits en une cha&icirc;ne quoted-printable</span></li>
   </ul>
  </p>
 </div>


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