Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 5276

php-manual-en-7.2.11-1.mga7.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>Convert character encoding as output buffer handler</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.iconv.html">iconv</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.intl.html">intl</a></div>
 <div class="up"><a href="ref.iconv.html">iconv Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ob-iconv-handler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ob_iconv_handler</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">ob_iconv_handler</span> &mdash; <span class="dc-title">Convert character encoding as output buffer handler</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ob-iconv-handler-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>ob_iconv_handler</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$contents</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$status</code></span>
   )</div>

  <p class="para rdfs-comment">
   Converts the string encoded in <code class="parameter">internal_encoding</code> to
   <code class="parameter">output_encoding</code>.
  </p>
  <p class="para">
   <code class="parameter">internal_encoding</code> and 
   <code class="parameter">output_encoding</code> should be defined in the <var class="filename">php.ini</var>
   file or in <span class="function"><a href="function.iconv-set-encoding.html" class="function">iconv_set_encoding()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ob-iconv-handler-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   See <span class="function"><a href="function.ob-start.html" class="function">ob_start()</a></span> for information about this handler
   parameters.
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ob-iconv-handler-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   See <span class="function"><a href="function.ob-start.html" class="function">ob_start()</a></span> for information about this handler
   return values.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ob-iconv-handler-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-2983">
    <p><strong>Example #1 <span class="function"><strong>ob_iconv_handler()</strong></span> example:</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />iconv_set_encoding</span><span style="color: #007700">(</span><span style="color: #DD0000">"internal_encoding"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"UTF-8"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">iconv_set_encoding</span><span style="color: #007700">(</span><span style="color: #DD0000">"output_encoding"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"ISO-8859-1"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">ob_start</span><span style="color: #007700">(</span><span style="color: #DD0000">"ob_iconv_handler"</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;start&nbsp;output&nbsp;buffering<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ob-iconv-handler-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.iconv-get-encoding.html" class="function" rel="rdfs-seeAlso">iconv_get_encoding()</a> - Retrieve internal configuration variables of iconv extension</span></li>
    <li class="member"><span class="function"><a href="function.iconv-set-encoding.html" class="function" rel="rdfs-seeAlso">iconv_set_encoding()</a> - Set current setting for character encoding conversion</span></li>
    <li class="member"><a href="ref.outcontrol.html" class="link">output-control functions</a></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.iconv.html">iconv</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.intl.html">intl</a></div>
 <div class="up"><a href="ref.iconv.html">iconv Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>