previousTranslation2_Decorator_Iconv クラス概要 (Previous) (Next) Translation2_Decorator_UTF8 クラス概要next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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');
?>

previousTranslation2_Decorator_Iconv クラス概要 (Previous) (Next) Translation2_Decorator_UTF8 クラス概要next

Download Documentation Last updated: Sun, 21 Jun 2009
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.