From b306b76c52e8c0b937d5f9f811b11322a9632788 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 23 Dec 2003 13:46:55 +0000 Subject: [PATCH] Various updates. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147257 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../iconv/functions/iconv-get-encoding.xml | 23 +++++++----- .../iconv/functions/iconv-mime-encode.xml | 4 +-- .../iconv/functions/iconv-set-encoding.xml | 7 ++-- reference/iconv/reference.xml | 35 ++++++++++++------- 4 files changed, 44 insertions(+), 25 deletions(-) diff --git a/reference/iconv/functions/iconv-get-encoding.xml b/reference/iconv/functions/iconv-get-encoding.xml index c5a5aa8aad..dbd7eb1d6b 100644 --- a/reference/iconv/functions/iconv-get-encoding.xml +++ b/reference/iconv/functions/iconv-get-encoding.xml @@ -1,20 +1,24 @@ - + iconv_get_encoding - Get current setting for character encoding conversion + Retrieve internal configuration variables of iconv extension Description - arrayiconv_get_encoding + mixediconv_get_encoding stringtype - It returns the current settings of - ob_iconv_handler as array or &false; on failure. + iconv_get_encoding returns the current value + of the internal configuration variable if successful, + or &false; on failure. + + + The value of the optional type can be: all @@ -22,9 +26,12 @@ output_encoding internal_encoding - If type is omitted or not 'all' - iconv_get_encoding returns the current settings of - ob_iconv_handler as string. + + + + If type is omitted or set to "all", + iconv_get_encoding returns an array that + stores all these variables. diff --git a/reference/iconv/functions/iconv-mime-encode.xml b/reference/iconv/functions/iconv-mime-encode.xml index f5750a6311..151e0d7cf8 100644 --- a/reference/iconv/functions/iconv-mime-encode.xml +++ b/reference/iconv/functions/iconv-mime-encode.xml @@ -1,5 +1,5 @@ - + @@ -143,7 +143,7 @@ echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences); - See also imap_base64_encode, + See also imap_binary, mb_encode_mimeheader and imap_8bit. diff --git a/reference/iconv/functions/iconv-set-encoding.xml b/reference/iconv/functions/iconv-set-encoding.xml index a3305d1d9f..b35014ddd5 100644 --- a/reference/iconv/functions/iconv-set-encoding.xml +++ b/reference/iconv/functions/iconv-set-encoding.xml @@ -1,5 +1,5 @@ - + @@ -14,11 +14,12 @@ stringcharset - It changes the value of type to + iconv_set_encoding changes the value of the internal + configuration variable specified by type to charset. &return.success; - The value of type can be: + The value of type can be any one of those: input_encoding output_encoding diff --git a/reference/iconv/reference.xml b/reference/iconv/reference.xml index 68e2444a8e..594c0062a0 100644 --- a/reference/iconv/reference.xml +++ b/reference/iconv/reference.xml @@ -1,5 +1,5 @@ - + iconv functions iconv @@ -8,21 +8,33 @@
&reftitle.intro; - 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 + GNU libiconv library. It will most + likely end up with more consistent results. + + + Since PHP 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. +
&reftitle.required; - 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 &url.libiconv;. + 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 + libiconv library installed in + your system.
@@ -40,8 +52,7 @@
&reftitle.seealso; - See also the - GNU Recode functions. + See also GNU Recode functions.