ob_iconv_handler

(PHP 4 >= 4.0.5)

ob_iconv_handler --  Convert character encoding as output buffer handler

Description

array ob_iconv_handler (string contents, int status)

It converts the string encoded in internal_encoding to output_encoding.

internal_encoding and output_encoding should be defined by iconv_set_encoding() or in configuration file.

Example 1. ob_iconv_handler() example:

ob_start("ob_iconv_handler"); // start output buffering

See also: iconv_get_encoding() and iconv_set_encoding().