/** * Sets the charset of the database connection. * * @param string $charset */ public function setCharset($charset) { if (function_exists('mysqli_set_charset')) { $this->mySQLi->set_charset($charset); } else { parent::setCharset($charset); } }