Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 6268

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>Set the input/output character encoding for parsing markup</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.tidy-save-config.html">tidy_save_config</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.tidy-setopt.html">tidy_setopt</a></div>
 <div class="up"><a href="ref.tidy.html">Tidy Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.tidy-set-encoding" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">tidy_set_encoding</h1>
  <p class="verinfo">(PECL tidy &gt;= 0.5.2)</p><p class="refpurpose"><span class="refname">tidy_set_encoding</span> &mdash; <span class="dc-title">Set the input/output character encoding for parsing markup</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.tidy-set-encoding-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>tidy_set_encoding</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$encoding</code></span>
   )</div>

  <p class="para rdfs-comment">
   Sets the encoding for input/output documents.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.tidy-set-encoding-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">encoding</code></em></span>
     <dd>

      <p class="para">
       The <em><code class="parameter">encoding</code></em> parameter sets the encoding for
       input/output documents. The possible values for encoding  are: 
       <em>ascii</em>, <em>latin0</em>, <em>latin1</em>,
       <em>raw</em>, <em>utf8</em>, <em>iso2022</em>,
       <em>mac</em>, <em>win1252</em>, <em>ibm858</em>,
       <em>utf16</em>, <em>utf16le</em>, <em>utf16be</em>,
       <em>big5</em>, and <em>shiftjis</em>.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.tidy-set-encoding-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>

 <div class="refsect1 notes" id="refsect1-function.tidy-set-encoding-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">This function is only available in
Tidy 1.0. It became obsolete in Tidy 2.0, and thus has been removed.
</span></p></blockquote>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.tidy-save-config.html">tidy_save_config</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.tidy-setopt.html">tidy_setopt</a></div>
 <div class="up"><a href="ref.tidy.html">Tidy Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>