[TYPO3-core] Changing TYPO3 source charset to UTF-8?
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Wed May 2 15:51:05 CEST 2007
Martin Kutschker schrieb:
> Ingo Renner schrieb:
>>
>> Am 02.05.2007 um 13:58 schrieb Martin Kutschker:
>>
>> Hi Masi,
>>
>>>> Exactly. So if nobody objects, I will take care of that later this
>>>> week...
>>>
>>> There are a few deprectated charset operations (eg case conversions)
>>> that
>>> rely on latin1.
>>
>> Even for the php source files themself?
>
> I'm talking about this:
>
> function danish_strtoupper($string) {
> $value = strtoupper($string);
> return strtr($value, 'áéúíâêûôîæøåäöü', 'ÁÉÚÍÄËÜÖÏÆØÅÄÖÜ');
> }
Here's another one:
function convUmlauts($str) {
$pat = array ( '/ä/', '/Ä/', '/ö/', '/Ö/', '/ü/', '/Ü/', '/ß/',
'/å/', '/Å/', '/ø/', '/Ø/', '/æ/', '/Æ/' );
$repl = array ( 'ae', 'Ae', 'oe', 'Oe', 'ue', 'Ue', 'ss', 'aa',
'AA', 'oe', 'OE', 'ae', 'AE' );
return preg_replace($pat,$repl,$str);
}
BTW, both are found in t3lib_div.
Masi
More information about the TYPO3-team-core
mailing list