Description
array
iconv_get_encoding ( [string type])
It returns the current settings of
ob_iconv_handler() as array or FALSE on failure_
The value of the optinal type can be:
| all |
| input_encoding |
| output_encoding |
| internal_encoding |
If
type is omitted or not 'all'
iconv_get_encoding() returns the current settings of
ob_iconv_handler() as string_
Ejemplo 1_ iconv_get_encoding() 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 printout of the above program will be:
Array
(
[input_encoding] => ISO_8859_1
[output_encoding] => ISO_8859_1
[internal_encoding] => UTF_8
) |
|
See also iconv_set_encoding() and
ob_iconv_handler()_