I18Nv2::getInfo (Previous) (Next) I18Nv2::createLocale

View this page in Last updated: Sun, 05 Oct 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

I18Nv2::autoConv()

I18Nv2::autoConv()  -- 出力文字セットの変換を自動的に行う

説明

このメソッドは ob_iconv_handler() を使用しやすくしたものです。そのため、 スクリプトの一番最初 (なんらかの出力を行う前) にコールしなければなりません。


<?php
1   require_once 'I18Nv2.php';
2   I18Nv2::autoConv('iso-8859-1''utf-8');
3   // ...
?>

パラメータ

string $ocs

出力したい文字セット。

string $ics

現在の入力文字セット。

返り値

成功時には TRUE、 失敗時には PEAR_Error を返します。

出力バッファリングが開始できなかった場合に PEAR_Error を返します。

注意

この関数は、スタティックにコール されます。

参照

PHP の ob_iconv_handler() も参照ください。

I18Nv2::getInfo (Previous) (Next) I18Nv2::createLocale

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.