PHP 8.1 onwards db_set_charset needs second parameter not null. Fixed with defaykt...
authorJoe <joe.hunt.consulting@gmail.com>
Fri, 24 Feb 2023 08:40:59 +0000 (09:40 +0100)
committerJoe <joe.hunt.consulting@gmail.com>
Fri, 24 Feb 2023 08:40:59 +0000 (09:40 +0100)
admin/db/maintenance_db.inc

index ba4d089225e79ccdd2ae1ad6204c5f8ff89eed0d..366226c977e0394a4d1fb83e935c9502dd863899 100644 (file)
@@ -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)