Re: Translation2 and UTF-8

From: Date: Mon, 06 Nov 2006 10:16:21 +0000
Subject: Re: Translation2 and UTF-8
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25723@lists.php.net to get a copy of this message
Hi Tim,
So, according to this article: http://www.alberton.info/dbms_charset_settings_explained.html It sounds like the Translation2 package doesn't yet support UTF-8 with the database containers?
it should work with the MDB2 container (CVS version) and with MDB2 2.3.0. You can now call $tr2->addLang() with a new parameter, where you can set the charset and collation: ================================================ $newLang = array(
    'lang_id'    => 'en',
    'table_name' => 'i18n',
    'name'       => 'english',
    'meta'       => 'some meta info',
    'error_text' => 'not available',
    'encoding'   => 'iso-8859-1',
); $options = array(
    'charset'   => 'latin1',
    'collation' => 'latin1_bin',
); $tr2->addLang($newLang, $options); ================================================ I'd love to receive some feedback, if you could provide some, it would be great. TIA. Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store

« previous php.pear.general (#25723) next »