Skip to content

Commit

Permalink
[TASK] Use utf8 as default charset really for SQLite
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbuerk committed Oct 13, 2024
1 parent db4b151 commit d316a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Core/Functional/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ protected function setUp(): void
$testbase->createDirectory(dirname($this->instancePath) . '/functional-sqlite-dbs');
$localConfiguration['DB']['Connections']['Default']['path'] = $dbPathSqlite;
if (($localConfiguration['DB']['charset'] ?? '') === '') {
$localConfiguration['DB']['charset'] = 'utf-8';
$localConfiguration['DB']['charset'] = 'utf8';
}
}

Expand Down

0 comments on commit d316a6d

Please sign in to comment.