public function setEncoding($encoding)
    {
        $this->connect();
        $this->_connection->exec('SET NAMES ' . $this->_connection->quote($encoding));
    }
public function setEncoding($encoding)
    {
        $this->connect();
        $this->_connection->exec('SET NAMES ' . $this->_connection->quote($encoding));
    }
public function setEncoding ( $ encoding ) { $ this -> connect ( ) ; $ this -> _connection -> exec ( 'SET NAMES ' . $ this -> _connection -> quote ( $ encoding ) ) ; }
Sets connection encoding

@param string $encoding The encoding to use.
@return void
Sets connection encoding