O comportamento dessas funções podem ser modificado pelas configurações do php.ini.
Nome | Padrão | Modificável | Changelog |
---|---|---|---|
iconv.input_encoding | "" | PHP_INI_ALL | Available since PHP 4.0.5. PHP <= 5.6.0 uses "ISO-8859-1" as default. Since PHP 5.6.0, if this setting is empty, default_charset is used. |
iconv.output_encoding | "" | PHP_INI_ALL | Available since PHP 4.0.5. PHP <= 5.6.0 uses "ISO-8859-1" as default. Since PHP 5.6.0, if this setting is empty, default_charset is used. |
iconv.internal_encoding | "" | PHP_INI_ALL | Available since PHP 4.0.5. PHP <= 5.6.0 uses "ISO-8859-1" as default. Since PHP 5.6.0, if this setting is empty, default_charset is used. |
Here's a short explanation of the configuration directives.
Some systems (like IBM AIX) use "ISO8859-1" instead of "ISO-8859-1" so this value has to be used in configuration options and function parameters.