diff --git a/languages/en_us/Install.php b/languages/en_us/Install.php index 342fa66bd55cd52b8c108314d8809b7dc14e514a..7ddd329396035dbcaa0bf17a6481965c32cbde7e 100644 --- a/languages/en_us/Install.php +++ b/languages/en_us/Install.php @@ -11,6 +11,7 @@ $languageStrings = array( 'ERR_DATABASE_CONNECTION_FAILED' => 'Unable to connect to database Server', 'ERR_DB_NOT_FOUND' => 'This Database is not found.Try changing the Database settings', + 'ERR_DB_NOT_UTF8' => 'Database charset or collation not compatible with UTF8', 'ERR_INVALID_MYSQL_PARAMETERS' => 'Invalid mySQL Connection Parameters specified', 'ERR_INVALID_MYSQL_VERSION' => 'MySQL version is not supported, kindly connect to MySQL 5.1.x or above', 'ERR_UNABLE_CREATE_DATABASE' => 'Unable to Create database', diff --git a/modules/Install/models/Utils.php b/modules/Install/models/Utils.php index f2696d16a4685504814baf4c57628319f028026b..f9c1995cc2fe2df50feea7657c2051004bf31b1d 100644 --- a/modules/Install/models/Utils.php +++ b/modules/Install/models/Utils.php @@ -414,6 +414,8 @@ class Install_Utils_Model { $error_msg_info = getTranslatedString('MSG_DB_ROOT_USER_NOT_AUTHORIZED', 'Install'); } elseif(!$db_exist_status) { $error_msg = $db_name.' -> '.getTranslatedString('ERR_DB_NOT_FOUND', 'Install'); + } elseif(!$db_utf8_support) { + $error_msg = $db_name.' -> '.getTranslatedString('ERR_DB_NOT_UTF8', 'Install'); } else { $dbCheckResult['flag'] = true; return $dbCheckResult;