[TYPO3-core] RFC #7942: Enable UTF-8 by default

Marcus Schwemer typo3 at schwemer.de
Wed Nov 10 12:53:00 CET 2010


Hi,

great to see this feature coming :-) Thanks.

Steffen Gebert schrieb am 10.11.10 12:21:

>> $dbConnectionIsUtf8 =
>> trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['setDBinit'], ' ;') == 'SET
>> NAMES utf8' ? TRUE : FALSE;

I have seen one TYPO3 installation where setDBinit contained not only 
the usual and recommended "SET NAMES utf8", but some more configuration 
options. So this test will fail, even if the db connection is meant to 
be utf8.

Wouldn't it be better to use a regex then?

Kind regards,
Marcus


More information about the TYPO3-team-core mailing list