Support for this command is limited to MySQL and Postgres databases.
string|false function getCharSet()
The function getCharSet()
retrieves the current client side character set, or false if it can't be determined.
See setCharSet().
echo $db->getCharset(); // utf8mb4