Home > PHP > Function > iconv > iconv_set_encoding()

iconv_set_encoding()

iconv_set_encoding - Set current setting for character encoding conversion

Syntax

bool iconv_set_encoding (string $type, string $charset)

Arguments

  • type - The value of type can be any one of those: input_encoding output_encoding internal_encoding
  • charset - The character set.

Description

Changes the value of the internal configuration variable specified by type to charset.

Version

PHP 4.0.5, 5

Return value

Returns TRUE on success or FALSE on failure.