ICONV_SET_ENCODING(3) 1 ICONV_SET_ENCODING(3)
iconv_set_encoding - Set current setting for character encoding conversion
SYNOPSIS
bool iconv_set_encoding (string $type, string $charset)
DESCRIPTION
Changes the value of the internal configuration variable specified by $type to $charset.
PARAMETERS
o $type
- The value of $type can be any one of these:
oinput_encoding
ooutput_encoding
ointernal_encoding
o $charset
- The character set.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
iconv_set_encoding(3) example
<?php
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-1");
?>
SEE ALSO
iconv_get_encoding(3), ob_iconv_handler(3).
PHP Documentation Group ICONV_SET_ENCODING(3)