require_once 'DB.php';
$db_url = "mysqli://root:@localhost/db";
$dbh = DB::connect($db_url);
$dbh->query("set names utf8");
then the client can get right utf8 encoded results
for statusnet , your classes should extends Memcached_DataObject
require_once 'DB.php';
$db_url = "mysqli://root:@localhost/db";
$dbh = DB::connect($db_url);
$dbh->query("set names utf8");