[TYPO3-core] RFC: #2302: substitute all strtoupper/strtolower with the t3lib_div-method
Martin Kutschker
masi-no at spam-typo3.org
Sat Jun 28 18:44:52 CEST 2008
Steffen Kamper schrieb:
> Hi,
>
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=2302
>
> Branches: trunk
>
> Problem: strtoupper and strtolower are not multibyte-safe. For this reason
> we added 2 methods in t3lib_div sometime ago.
No, this is a misunderstanding! The sole purpose of this two function is
to provide a locale independent conversion (needed for Turkish).
It's only meant for 7bit ASCII data, ie strings that are know to contain
only a-z and A-Z (eg by definition markers, etc)
Do NOT use it it on arbitary string especially not utf8.
If you need to upper case utf or other charsets use t3lib_cs->case().
Masi
More information about the TYPO3-team-core
mailing list