mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Various updates.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147257 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c0c8068767
commit
b306b76c52
4 changed files with 44 additions and 25 deletions
|
@ -1,20 +1,24 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/iconv.xml, last change in rev 1.1 -->
|
||||
<refentry id="function.iconv-get-encoding">
|
||||
<refnamediv>
|
||||
<refname>iconv_get_encoding</refname>
|
||||
<refpurpose>Get current setting for character encoding conversion</refpurpose>
|
||||
<refpurpose>Retrieve internal configuration variables of iconv extension</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>iconv_get_encoding</methodname>
|
||||
<type>mixed</type><methodname>iconv_get_encoding</methodname>
|
||||
<methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
It returns the current settings of
|
||||
<function>ob_iconv_handler</function> as array or &false; on failure.
|
||||
<function>iconv_get_encoding</function> returns the current value
|
||||
of the internal configuration variable if successful,
|
||||
or &false; on failure.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The value of the optional <parameter>type</parameter> can be:
|
||||
<simplelist>
|
||||
<member>all</member>
|
||||
|
@ -22,9 +26,12 @@
|
|||
<member>output_encoding</member>
|
||||
<member>internal_encoding</member>
|
||||
</simplelist>
|
||||
If <parameter>type</parameter> is omitted or not 'all'
|
||||
<function>iconv_get_encoding</function> returns the current settings of
|
||||
<function>ob_iconv_handler</function> as string.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If <parameter>type</parameter> is omitted or set to "all",
|
||||
<function>iconv_get_encoding</function> returns an array that
|
||||
stores all these variables.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="function.iconv-mime-encode">
|
||||
<refnamediv>
|
||||
|
@ -143,7 +143,7 @@ echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences);
|
|||
</example>
|
||||
|
||||
<para>
|
||||
See also <function>imap_base64_encode</function>,
|
||||
See also <function>imap_binary</function>,
|
||||
<function>mb_encode_mimeheader</function>
|
||||
and <function>imap_8bit</function>.
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/iconv.xml, last change in rev 1.1 -->
|
||||
<refentry id="function.iconv-set-encoding">
|
||||
<refnamediv>
|
||||
|
@ -14,11 +14,12 @@
|
|||
<methodparam><type>string</type><parameter>charset</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
It changes the value of <parameter>type</parameter> to
|
||||
<function>iconv_set_encoding</function> changes the value of the internal
|
||||
configuration variable specified by <parameter>type</parameter> to
|
||||
<parameter>charset</parameter>. &return.success;
|
||||
</para>
|
||||
<para>
|
||||
The value of <parameter>type</parameter> can be:
|
||||
The value of <parameter>type</parameter> can be any one of those:
|
||||
<simplelist>
|
||||
<member>input_encoding</member>
|
||||
<member>output_encoding</member>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<reference id="ref.iconv">
|
||||
<title>iconv functions</title>
|
||||
<titleabbrev>iconv</titleabbrev>
|
||||
|
@ -8,21 +8,33 @@
|
|||
<section id="iconv.intro">
|
||||
&reftitle.intro;
|
||||
<para>
|
||||
This module contains an interface to the iconv library functions.
|
||||
The iconv library functions convert strings between various
|
||||
character sets encodings. The supported character sets depend on the
|
||||
iconv() implementation on your system. Note that the iconv() function
|
||||
on some systems may not work as well as you expect. In this case, you
|
||||
should install the libiconv library.
|
||||
This module contains an interface to iconv character set conversion
|
||||
facility. With this module, you can turn a string represented by a local
|
||||
character set into the one represented by another character set,
|
||||
which may be the Unicode charcter set. Supported character sets
|
||||
depends on the iconv() implementation of your system.
|
||||
Note that the iconv function on some systems may not work
|
||||
as you expect. In such case, it'd be a good idea to install the
|
||||
<ulink url="&url.libiconv;">GNU libiconv</ulink> library. It will most
|
||||
likely end up with more consistent results.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Since <application>PHP</application> 5.0.0, this extension comes with
|
||||
various utility functions that help you to write multilingual
|
||||
scripts. Let's have a look at the following sections to explore the new
|
||||
features.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="iconv.requirements">
|
||||
&reftitle.required;
|
||||
<para>
|
||||
Your systems standard C library must provide the iconv() function or you
|
||||
must have libiconv installed on your system. The libiconv library is
|
||||
available from <ulink url="&url.libiconv;">&url.libiconv;</ulink>.
|
||||
You will need nothing if the system you are using is one of the recent
|
||||
POSIX-compliant systems because standard C libraries that is supplied in
|
||||
them must provide iconv faclity. Otherwise, you have to get the
|
||||
<ulink url="&url.libiconv;">libiconv</ulink> library installed in
|
||||
your system.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
|
@ -40,8 +52,7 @@
|
|||
<section id="iconv.seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
See also the
|
||||
<link linkend="ref.recode">GNU Recode functions</link>.
|
||||
See also <link linkend="ref.recode">GNU Recode functions</link>.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Reference in a new issue