previousClass Summary Translation2_Decorator_Iconv (Previous) (Next) Class Summary Translation2_Decorator_UTF8next

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

Class Summary Translation2_Decorator_SpecialChars

Class Summary Translation2_Decorator_SpecialChars – Decorator to replace special chars with the matching html entities.

SpecialChars Decorator Example

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

previousClass Summary Translation2_Decorator_Iconv (Previous) (Next) Class Summary Translation2_Decorator_UTF8next

Download Documentation Last updated: Tue, 02 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.