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

Steffen Kamper info at sk-typo3.de
Wed Nov 10 12:56:10 CET 2010


Hi,

Marcus Schwemer schrieb:
> 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?
> 

yes - it's also not ensured this is the first line of the setting, so 
search for contain 'SET NAMES utf8' should be the safe way.

vg Steffen


More information about the TYPO3-team-core mailing list