From 299588cbb0aa85c207d5d0dcac06764512575cf1 Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Sun, 1 Jul 2001 03:38:18 +0000 Subject: [PATCH] added iconv function and modified for corrupted character in japanese manual. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50394 c90b9560-bf6c-de11-be94-00142212c4b1 --- chapters/install.xml | 14 ++++ functions/iconv.xml | 188 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 202 insertions(+) create mode 100644 functions/iconv.xml diff --git a/chapters/install.xml b/chapters/install.xml index 61376c42d0..b0cb52b0b5 100644 --- a/chapters/install.xml +++ b/chapters/install.xml @@ -2835,6 +2835,20 @@ $ php4-enable + + + --with-iconv[=DIR] + + + + PHP 3: Option not available in PHP 3 + + + PHP 4: Include iconv support. + + + + --with-pspell[=DIR] diff --git a/functions/iconv.xml b/functions/iconv.xml new file mode 100644 index 0000000000..d0e5347caa --- /dev/null +++ b/functions/iconv.xml @@ -0,0 +1,188 @@ + + iconv functions + iconv + + + + This module contains an interface to the iconv library functions. To + be able to use the functions defined in this + module you must compile you PHP interpreter using the --with-iconv + option. In order to do so, you must have iconv() function in + standard C library or libiconv installed on your system. + libiconv library is available from + &url.libiconv;. + + + + iconv library function converts files between various encoded + character sets. The supported character sets depend on iconv() + implementation on your system. Note that iconv() function in some + system is not work well as you expect. In this case, you should + install libiconv library. + + + + + + iconv + Convert string to requested character encoding + + + Description + + + string iconv + string in_charset + string out_charset + string str + + + + It converts the string string encoded in + in_charset to the string encoded in + out_charset. It returns the converted + string or FALSE, if it fails. + + + + <function>iconv</function> example: + +echo iconv("ISO-8859-1","UTF8","This is test."); + + + + + + + + + iconv_get_encoding + + Get current setting for character encoding conversion + + + + Description + + + array iconv_get_encoding + string + type + + + + + It returns the current settings of + ob_iconv_handler as array or FALSE in failure. + + + See also: + iconv_set_encoding, + ob_iconv_handler. + + + + + + + iconv_set_encoding + + Set current setting for character encoding conversion + + + + Description + + + array iconv_set_encoding + string type + string charset + + + + It changes the value of type to + charset and returns TRUE in success or + FALSE in failure. + + + + <function>iconv_set_encoding</function> example: + +iconv_set_encoding("internal_encoding", "UTF-8"); +iconv_set_encoding("output_encoding", "ISO-8859-1"); + + + + + See also: + iconv_get_encoding, + ob_iconv_handler. + + + + + + + ob_iconv_handler + + Convert character encoding as output buffer handler + + + + Description + + + array ob_iconv_handler + string + contents + + int + status + + + + + It converts the string encoded in + internal_encoding to + output_encoding. + + + internal_encoding and + output_encoding should be defined + by iconv_set_encoding or in + configuration file. + + + + <function>ob_iconv_handler</function> example: + +ob_start("ob_iconv_handler"); // start output buffering + + + + + See also: + iconv_get_encoding, + iconv_set_encoding. + + + + + + +