Translation2_Decorator_Iconv クラス概要 (Previous) (Next) Translation2_Decorator_UTF8 クラス概要

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

Translation2_Decorator_SpecialChars クラス概要

Translation2_Decorator_SpecialChars クラス概要  -- 特殊文字を、対応する html エンティティに変換するデコレータ

SpecialChars デコレータの例

このデコレータは、特殊文字をそれに対応する html エンティティに変換します。 setOption() でパラメータ charset を使用すると、現在のデコレータの対象文字セットを指定することができます (デフォルトは 'ISO-8859-1' です)。


<?php
$tr = new Translation2($driver$dbinfo$params);
$tr =& $tr->getDecorator('SpecialChars');
$tr->setOption('charset''UTF-8');
?>

Translation2_Decorator_Iconv クラス概要 (Previous) (Next) Translation2_Decorator_UTF8 クラス概要

Download Documentation Last updated: Sun, 24 Aug 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.