XL. iconv functions

執行時期組態

php.ini中的設定會影響這些函數的行為。

表格 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().

預先定義常數

Since PHP 4.3.0 it is possible to identify at runtime which iconv implementation is adopted by this extension.

表格 2. iconv constants

constant type description
ICONV_IMPL string The implementation name
ICONV_VERSION string The implementation version


注: Writing implementation-dependent scripts with these constants should be discouraged.

內容目錄
iconv_get_encoding -- Get current setting for character encoding conversion
iconv_set_encoding -- Set current setting for character encoding conversion
iconv -- Convert string to requested character encoding
ob_iconv_handler -- Convert character encoding as output buffer handler