Introducción
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_
Requerimientos
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 http://www_gnu_org/software/libiconv/_
Instalación
To be able to use the functions defined in this module you must compile
your PHP interpreter using the configure line
__with_iconv[=DIR]_
Note to Win32 Users:
In order to enable this module on a Windows environment, you must copy
iconv_1_3_dll from the DLL folder of the PHP/Win32 binary
package to the SYSTEM32 folder of your windows machine_ (Ex: C:\WINNT\SYSTEM32
or C:\WINDOWS\SYSTEM32)_ Starting with PHP 4_2_1 the name changed to
iconv_dll
Configuración en tiempo de
ejecución
El comportamiento de estas
funciones está afectado por los valores definidos en
php_ini_
Tabla 1_ Iconv configuration options
| Name | Default | Changeable |
|---|
| iconv_input_encoding | ICONV_INPUT_ENCODING | PHP_INI_ALL |
| iconv_output_encoding | ICONV_OUTPUT_ENCODING | PHP_INI_ALL |
| iconv_internal_encoding | ICONV_INTERNAL_ENCODING | PHP_INI_ALL |
For further details and definition of the PHP_INI_* constants see
ini_set()_
Tipos de recursos
Esta extensión no tiene
ningún tipo de recurso definido_
Constantes predefinidas
Since PHP 4_3_0 it is possible to identify at runtime which iconv
implementation is adopted by this extension_
Tabla 2_ iconv constants
| constant | type | description |
|---|
| ICONV_IMPL | string | The implementation name |
| ICONV_VERSION | string | The implementation version |
Nota:
Writing implementation_dependent scripts with these constants should be
discouraged_