Support for this command is limited to MySQL and Postgres databases, as of ADOdb V6, you can use the setConnectionParameter() parameter with any database that supports character set configuration.
bool function setCharSet( string $characterSetName )
The function setCharSet()
set the client side character set to the specified set. The function returns true or false based on the success of command execution.
$db->setCharset('utf8');
$SQL = "SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'"); $db->execute($SQL);