I18Nv2::autoConv()
-- Automatically transform output between character sets
Opis
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 // ...
?>
|
Parametr
- string $ocs
desired output character set
- string $ics
current intput character set
Zwracana wartość
Zwraca TRUE w przypadku powodzenia,
PEAR_Error w przypadku niepowodzenia.
Returns PEAR_Error if output buffering couldn't be started.
Uwagi
Ta funkcja powinna być wywołana
statycznie.