Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 19132 программиста и 1632 робота. Сейчас ищут 988 программистов ...
Class Summary Translation2_Decorator_SpecialChars
Вернуться к: Translation2
Class Summary Translation2_Decorator_SpecialChars
Class Summary Translation2_Decorator_SpecialChars – Decorator to replace special chars with the matching html entities.
This decorator replaces special chars with the matching html entities. Use setOption() with the charset parameter to specify the target charset of the current decorator (the default is 'ISO-8859-1'):
<?php
$tr = new Translation2($driver, $dbinfo, $params);
$tr =& $tr->getDecorator('SpecialChars');
$tr->setOption('charset', 'UTF-8');
?>
Вернуться к: Translation2