diff --git a/modules/migrate/application/clicommands/PreferencesCommand.php b/modules/migrate/application/clicommands/PreferencesCommand.php index 65f2b43da..fa2bad50c 100644 --- a/modules/migrate/application/clicommands/PreferencesCommand.php +++ b/modules/migrate/application/clicommands/PreferencesCommand.php @@ -35,7 +35,9 @@ class PreferencesCommand extends Command $resource = $this->params->getRequired('resource'); } - $connection = ResourceFactory::create($resource); + $resourceConfig = ResourceFactory::getResourceConfig($resource); + $resourceConfig->charset = 'utf8'; + $connection = ResourceFactory::createResource($resourceConfig); $preferencesPath = Config::resolvePath('preferences'); if (! file_exists($preferencesPath)) {