PEAR Manual
Prev |  | Next

# Class Summary Translation2_Decorator_Iconv

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

## Iconv Decorator Example

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

Prev | Home | Next
Class Summary Translation2_Decorator_Lang | Up | Class Summary Translation2_Decorator_SpecialChars