Skip to content

Commit 4f874c4

Browse files
committed
Always import files as UTF-8
1 parent 1a13849 commit 4f874c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/AbstractDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected static function importFile(string $file): void
151151

152152
echo 'importing ' . $file . "\n";
153153

154-
$importCommand = "cat $file | mysql $mysqlArgs";
154+
$importCommand = "echo 'SET NAMES utf8mb4;' | cat - $file | mysql $mysqlArgs";
155155

156156
self::executeLocalCommand($importCommand);
157157
}

0 commit comments

Comments
 (0)