mixed I18Nv2::autoConv (
string $ocs = 'UTF-8'
, string $ics = 'ISO-8859-1'
)
This method utilizes ob_iconv_handler(), so you should call it at the beginning of your script (prior to any output).
<?php
1 require_once 'I18Nv2.php';
2 I18Nv2::autoConv('iso-8859-1', 'utf-8');
3 // ...
?>
$ocs
desired output character set
$ics
current intput character set
Returns TRUE on success, PEAR_Error on failure.
Returns PEAR_Error if output buffering couldn't be started.
This function should be called statically.
See also PHPs ob_iconv_handler().