I18Nv2::autoConv

I18Nv2::autoConv() – Automatically transform output between character sets

Synopsis

require_once 'I18Nv2.php';

mixed I18Nv2::autoConv ( string $ocs = 'UTF-8' , string $ics = 'ISO-8859-1' )

Description

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   // ...
?>

Parameter

string $ocs

desired output character set

string $ics

current intput character set

Return value

Returns TRUE on success, PEAR_Error on failure.

Returns PEAR_Error if output buffering couldn't be started.

Note

This function should be called statically.

See

See also PHPs ob_iconv_handler().

Get several locale specific information (Previous) Create an I18Nv2_Locale object (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.