Skip to content

Commit

Permalink
Explicitly set charset and collation for Drupal sites
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Aug 22, 2024
1 parent 4166cbc commit 30aaa3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/settings.lagoon.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
}

// Lagoon database connection.
// If you require a specific charset or collation for your site,
// copy, update and add this paragraph to your all.settings.php file.
if (getenv('LAGOON')) {
$databases['default']['default'] = [
'driver' => 'mysql',
Expand All @@ -38,6 +40,8 @@
'password' => getenv('MARIADB_PASSWORD') ?: 'drupal',
'host' => getenv('MARIADB_HOST') ?: 'mariadb',
'port' => getenv('MARIADB_PORT') ?: 3306,
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'prefix' => '',
];
}
Expand Down

0 comments on commit 30aaa3d

Please sign in to comment.