<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.recode.php',
    1 => 'Recode',
    2 => 'GNU Recode',
  ),
  'up' => 
  array (
    0 => 'refs.international.php',
    1 => '国际化与字符编码支持',
  ),
  'prev' => 
  array (
    0 => 'class.pspell-config.php',
    1 => 'PSpell\\Config',
  ),
  'next' => 
  array (
    0 => 'recode.setup.php',
    1 => '安装/配置',
  ),
  '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">简介</h1>
  <div class="warning"><strong class="warning">警告</strong>
 <p class="simpara">此扩展已<em>无人维护</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">注意</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">注意</strong>: <span class="simpara">此扩展在 Windows 平台上不可用。</span></p></blockquote>
 </div>
 

 




 







<ul class="chunklist chunklist_book"><li><a href="recode.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="recode.requirements.php">需求</a></li><li><a href="recode.installation.php">安装</a></li></ul></li><li><a href="ref.recode.php">Recode 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.recode.php">recode</a> — 别名 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); ?>