[TYPO3-core] RFC #14919: New feature: Better charset transformation by adding autodetection

Martin Kutschker masi-no at spam-typo3.org
Tue Jun 29 23:31:13 CEST 2010


Am 29.06.2010 20:45, schrieb Jigal van Hemert:
> Ralf Büchner wrote:
>> Better charset transformation by adding autodetection for [SYS][t3lib_cs_convMethod] and
>> [SYS][t3lib_cs_utils]
> 
> Now that I think about it and see the way the functions are built, it might be a good strategy to:
> - do the autodetection in the install tool to provide a suggestion for the setting

Yes, the installer is the place for auto-detection.

> - use variable functions to call the right function depending on the settings
> - use a try/catch construction for situations where the settings are not supported by the system
> (e.g. mbstring in settings, but functions are not available), log error and use default.
> 
> I haven't tried this strategy, but I think there can be a performance gain in losing the
> if...elseif...elseif constructions.

It's definitely not clean or easy to read. I have thought about splitting up t3lib_cs for some time,
but made no decision yet on how I think it would be best.

Let's move this discussion to another list.

Masi


More information about the TYPO3-team-core mailing list