diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-74038-ReportForCheckingDatabaseCharacterSet.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-74038-ReportForCheckingDatabaseCharacterSet.rst new file mode 100644 index 0000000000000000000000000000000000000000..a61212fe12f84a9aadfa26e016e8915ee3925885 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Feature-74038-ReportForCheckingDatabaseCharacterSet.rst @@ -0,0 +1,15 @@ +============================================================ +Feature: #74038 - Report for checking database character set +============================================================ + +Description +=========== + +If a database has e.g. latin1 as default character set, new tables or fields created by TYPO3 will be created +with this default charset as utf-8 is not enforced. +A report has been added that checks the default charset and warns administrators if a wrong charset is used. + +Impact +====== + +If the default database character set is not utf-8, the report warns administrators about a wrong charset. \ No newline at end of file diff --git a/typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php b/typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php index cdc9474d7555ec945e6552f6945756534971b5aa..e06b064d2d164a459fba026431ad7b5491721c3d 100644 --- a/typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php +++ b/typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php @@ -286,13 +286,13 @@ class ConfigurationStatus implements StatusProviderInterface $statusValue = $this->getLanguageService()->getLL('status_ok'); if ($key !== 'character_set_database') { - $message = sprintf($this->getLanguageService()->getLL('status_MysqlDatabaseCharacterSet_CheckFailed'),$key); + $message = sprintf($this->getLanguageService()->getLL('status_MysqlDatabaseCharacterSet_CheckFailed'), $key); $severity = ReportStatus::WARNING; $statusValue = $this->getLanguageService()->getLL('status_checkFailed'); } // also allow utf8mb4 if (substr($value, 0, 4) !== 'utf8') { - $message = sprintf($this->getLanguageService()->getLL('status_MysqlDatabaseCharacterSet_Unsupported'),$value); + $message = sprintf($this->getLanguageService()->getLL('status_MysqlDatabaseCharacterSet_Unsupported'), $value); $severity = ReportStatus::ERROR; $statusValue = $this->getLanguageService()->getLL('status_wrongValue'); } else {