From 4d6fed545c2ebd233a4204da10c502c46a24e734 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 24 Feb 2023 09:40:59 +0100 Subject: [PATCH] PHP 8.1 onwards db_set_charset needs second parameter not null. Fixed with defaykt utf8. --- admin/db/maintenance_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/db/maintenance_db.inc b/admin/db/maintenance_db.inc index ba4d0892..366226c9 100644 --- a/admin/db/maintenance_db.inc +++ b/admin/db/maintenance_db.inc @@ -383,7 +383,7 @@ function db_import($filename, $connection, $force=true, $init=true, $protect=fal // 'set names' or equivalents should be used only on post 2.3 FA versions // otherwise text encoding can be broken during import // - $encoding = null; // UI encoding for default site language is the default + $encoding = 'utf8'; // UI encoding for default site language is the default $new_db = $init || db_fixed(); $new_file = count($set_names); if ($new_db) -- 2.30.2