getDatabaseConnection()->getParams()['charset']; $platform = OC::$server->getDatabaseConnection()->getDatabasePlatform(); if ($platform instanceof MySqlPlatform && $charset !== 'utf8mb4') { $msg = 'App can not be installed because database MySql/MariaDb uses a ' . 'non UTF8 charset: ' . $charset .'. Learn more on how to migrate ' . 'your database to utf8mb4 after making a backup at ' . 'https://dba.stackexchange.com/a/21684'; throw new Exception($msg); }