From 4f5845bde259ad62c3347e3f3c07f05c9e785b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 16 Feb 2022 10:31:50 +0100 Subject: [PATCH] Recommend a better charset for MySQL UTF8 is meant to be used when using PostgreSQL, and the example is mainly about MySQL. In the case of MySQL, utf8 is a deprecated charset and should not be used. --- reference/configuration/doctrine.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index 3d2435e73a0..fc85ef8f341 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -62,7 +62,7 @@ The following block shows all possible configuration keys: unix_socket: /tmp/mysql.sock # the DBAL wrapperClass option wrapper_class: App\DBAL\MyConnectionWrapper - charset: UTF8 + charset: utf8mb4 logging: '%kernel.debug%' platform_service: App\DBAL\MyDatabasePlatformService server_version: '5.7' @@ -96,7 +96,7 @@ The following block shows all possible configuration keys: memory="true" unix-socket="/tmp/mysql.sock" wrapper-class="App\DBAL\MyConnectionWrapper" - charset="UTF8" + charset="utf8mb4" logging="%kernel.debug%" platform-service="App\DBAL\MyDatabasePlatformService" server-version="5.7">