previousClass Summary Translation2_Decorator_Lang (Previous) (Next) Class Summary Translation2_Decorator_SpecialCharsnext

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

Class Summary Translation2_Decorator_Iconv

Class Summary Translation2_Decorator_Iconv – Decorator to switch from/to different encodings.

Iconv Decorator Example

Use setOption() with the encoding parameter to specify the target encoding of the current decorator.

<?php
$tr 
= new Translation2($driver$dbinfo$params);

//set Hungarian as the main language
$tr->setLang('hu');

//encode all the strings using the ISO-8859-2 charset
$tr =& $tr->getDecorator('Iconv');
$tr->setOption('encoding''ISO-8859-2');
?>

previousClass Summary Translation2_Decorator_Lang (Previous) (Next) Class Summary Translation2_Decorator_SpecialCharsnext

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