iconv functions

PHP Manual
Prev |  | Next

# XL. iconv functions

# Introduction

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.

# Requirements

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/.

# Installation

To be able to use the functions defined in this module you must compile your PHP interpreter using the configure line `--with-iconv[=DIR]`.

# Runtime Configuration

The behaviour of these functions is affected by settings in `php.ini`.

Table 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().

# Resource Types

This extension has no resource types defined.

# Predefined Constants

This extension has no constants defined.

# See Also

See also the GNU Recode functions.

Prev | Home | Next
hw_api->userlist | Up | iconv_get_encoding