Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ob_iconv_handler(3) [php man page]

OB_ICONV_HANDLER(3)							 1						       OB_ICONV_HANDLER(3)

ob_iconv_handler - Convert character encoding as output buffer handler

SYNOPSIS
string ob_iconv_handler (string $contents, int $status) DESCRIPTION
Converts the string encoded in $internal_encoding to $output_encoding. $internal_encoding and $output_encoding should be defined in the php.ini file or in iconv_set_encoding(3). PARAMETERS
See ob_start(3) for information about this handler parameters. RETURN VALUES
See ob_start(3) for information about this handler return values. EXAMPLES
Example #1 ob_iconv_handler(3) example: <?php iconv_set_encoding("internal_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "ISO-8859-1"); ob_start("ob_iconv_handler"); // start output buffering ?> SEE ALSO
iconv_get_encoding(3), iconv_set_encoding(3), output-control functions. PHP Documentation Group OB_ICONV_HANDLER(3)

Check Out this Related Man Page

ICONV_GET_ENCODING(3)							 1						     ICONV_GET_ENCODING(3)

iconv_get_encoding - Retrieve internal configuration variables of iconv extension

SYNOPSIS
mixed iconv_get_encoding ([string $type = "all"]) DESCRIPTION
Retrieve internal configuration variables of iconv extension. PARAMETERS
o $type - The value of the optional $type can be: oall oinput_encoding ooutput_encoding ointernal_encoding RETURN VALUES
Returns the current value of the internal configuration variable if successful or FALSE on failure. If $type is omitted or set to "all", iconv_get_encoding(3) returns an array that stores all these variables. EXAMPLES
Example #1 iconv_get_encoding(3) example <pre> <?php iconv_set_encoding("internal_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "ISO-8859-1"); var_dump(iconv_get_encoding('all')); ?> </pre> The above example will output: Array ( [input_encoding] => ISO-8859-1 [output_encoding] => ISO-8859-1 [internal_encoding] => UTF-8 ) SEE ALSO
iconv_set_encoding(3), ob_iconv_handler(3). PHP Documentation Group ICONV_GET_ENCODING(3)
Man Page