[Typo3] crop whole words

Helge Vad helge at mereteland.dk
Mon Nov 7 20:21:39 CET 2005


> ...hasn't this already been implemented in typo3?
> In TSref it's clearly stated that crop accepts third parameter (boolean)
> which does exactly the thing explained in second link you posted.
Right, I didn't notice that third paramter - in that case ( the code from
http://lists.netfielders.de/pipermail/typo3-dev/2004-July/004769.html actually having been implemented in the later T3-versions) i
guess it seems quite likely that the substring function a.o. give the wrong result with
the utf8 string parameters.
Have you looked at utf8_decode/encode in the PHP documentation, i.e.

http://dk2.php.net/manual/de/function.utf8-encode.php, or something like
http://dk2.php.net/manual/de/function.substr.php#57899 in order to replace
the substring functions for 'plain' PHP strings ?

Best Helge






More information about the TYPO3-english mailing list