Project

General

Profile

Bug #21127 ยป 15397.diff

Administrator Admin, 2010-08-08 19:42

View differences:

t3lib/class.t3lib_div.php (working copy)
self::logDeprecatedFunction();
$value = strtoupper($string);
return strtr($value, '???????????????', '???????????????');
return strtr($value, array(
chr(225) => chr(193),
chr(233) => chr(201),
chr(250) => chr(218),
chr(237) => chr(205),
chr(226) => chr(196),
chr(234) => chr(203),
chr(251) => chr(220),
chr(244) => chr(214),
chr(238) => chr(207),
chr(230) => chr(198),
chr(248) => chr(216),
chr(229) => chr(197),
chr(228) => chr(196),
chr(246) => chr(214),
chr(252) => chr(220),
));
}
/**
......
public static function convUmlauts($str) {
self::logDeprecatedFunction();
$pat = array ( '/?/', '/?/', '/?/', '/?/', '/?/', '/?/', '/?/', '/?/', '/?/', '/?/', '/?/', '/?/', '/?/' );
$repl = array ( 'ae', 'Ae', 'oe', 'Oe', 'ue', 'Ue', 'ss', 'aa', 'AA', 'oe', 'OE', 'ae', 'AE' );
return preg_replace($pat,$repl,$str);
$pattern = array (chr(228), chr(196), chr(246), chr(214), chr(252), chr(220), chr(223), chr(229), chr(197), chr(248), chr(216), chr(230), chr(198));
$replace = array ('ae', 'Ae', 'oe', 'Oe', 'ue', 'Ue', 'ss', 'aa', 'AA', 'oe', 'OE', 'ae', 'AE');
return str_replace($pattern, $replace, $str);
}
/**
    (1-1/1)