<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.international.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'book.recode.php',
    1 => 'Recode',
    2 => 'GNU Recode',
  ),
  'up' => 
  array (
    0 => 'refs.international.php',
    1 => 'Human Language and Character Encoding Support',
  ),
  'prev' => 
  array (
    0 => 'class.pspell-config.php',
    1 => 'PSpell\\Config',
  ),
  'next' => 
  array (
    0 => 'recode.setup.php',
    1 => 'Installing/Configuring',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/recode/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.recode.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.recode" class="book">
 
 <h1 class="title">GNU Recode</h1>
 

 
 <div id="intro.recode" class="preface">
  <h1 class="title">Introduction</h1>
  <div class="warning"><strong class="warning">Warning</strong>
 <p class="simpara">This extension is <em>unmaintained</em>.</p>
</div>
  <p class="simpara">
   This module contains an interface to the GNU Recode library. The GNU
   Recode library converts files between various coded character sets and
   surface encodings. When this cannot be achieved exactly, it may get rid
   of the offending characters or fall back on approximations. The library
   recognises or produces nearly 150 different character sets and is able to
   convert files between almost any pair. Most
   <a href="https://datatracker.ietf.org/doc/html/rfc1345" class="link external">&raquo;&nbsp;RFC 1345</a> character sets are
   supported.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <span class="simpara">
    This extension is unbundled and moved to <a href="https://pecl.php.net/package/recode" class="link external">&raquo;&nbsp;PECL</a>
    as of PHP 7.4.0.
    Consider to use the <a href="book.mbstring.php" class="link">Multibyte String</a> or
    <a href="book.iconv.php" class="link">iconv</a> extensions instead.
   </span>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">This extension is not
available on Windows platforms.</span></p></blockquote>
 </div>
 

 




 







<ul class="chunklist chunklist_book"><li><a href="recode.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="recode.requirements.php">Requirements</a></li><li><a href="recode.installation.php">Installation</a></li></ul></li><li><a href="ref.recode.php">Recode Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.recode.php">recode</a> — Alias of recode_string</li><li><a href="function.recode-file.php">recode_file</a> — Recode from file to file according to recode request</li><li><a href="function.recode-string.php">recode_string</a> — Recode a string according to a recode request</li></ul></li></ul></div><?php manual_footer($setup); ?>