Skip to content

Commit cf5ab6a

Browse files
committed
[TASK] Use utf8 as default charset for SQLite and PostgreSQL
Literally, PostgresSQL and SQLite are smart enough to map `utf-8` correctly to their internal charset `utf8`, which means that the default would be okay. Recently added to the testing-framework, this has been handled before by TYPO3 core using `utf8`, it's changed to streamline towards the same writing throughout TYPO3. Releases: main, 8
1 parent 89313ea commit cf5ab6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Core/Functional/FunctionalTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ protected function setUp(): void
367367
}
368368
// Postgres/SQLite requires to use `utf-8` as charset and does not support `utf8mb4`.
369369
if (($localConfiguration['DB']['Connections']['Default']['charset'] ?? '') === '') {
370-
$localConfiguration['DB']['Connections']['Default']['charset'] = 'utf-8';
370+
$localConfiguration['DB']['Connections']['Default']['charset'] = 'utf8';
371371
}
372372
} else {
373373
// sqlite dbs of all tests are stored in a dir parallel to instance roots. Allows defining this path as tmpfs.

0 commit comments

Comments
 (0)