[TYPO3-core] RFC: #15397: Fix special chars in class.t3lib_div.php

Steffen Kamper info at sk-typo3.de
Sun Aug 8 19:45:09 CEST 2010


Hi,

this is a SVN patch request.

Type: Bugfix

BT Reference: http://bugs.typo3.org/view.php?id=15397

Branches: trunk

The special chars in t3lib_div::danish_strtoupper and 
t3lib_div::convUmlauts prevent file format utf8. These are the only 
functions using such chars in code.

Even the functions are deprecated, i changed them not to use special 
chars, so we are save with convert to utf-8. These function will stay in 
4.5LTS and will be removed in 4.6

Mini-Test:

$test = 'äÄöÖüÜßåÅøØæÆ';
# expected: äÄöÖüÜßåÅøØæÆ => aeAeoeOeueUessaaAAoeOEaeAE
echo $test . '  =>  ' . t3lib_div::convUmlauts($test);
# result: äÄöÖüÜßåÅøØæÆ => aeAeoeOeueUessaaAAoeOEaeAE


$test = 'áéúíâêûôîæøåäöü';
# expected: 'áéúíâêûôîæøåäöü' => 'ÁÉÚÍÄËÜÖÏÆØÅÄÖÜ'
echo $test . '  =>  ' . t3lib_div::danish_strtoupper($test);
# result: áéúíâêûôîæøåäöü => ÁÉÚÍÂÊÛÔÎÆØÅÄÖÜ

vg Steffen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15397.diff
Type: text/x-patch
Size: 1461 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100808/8d841d36/attachment.bin>


More information about the TYPO3-team-core mailing list