[TYPO3-dev] String Handling in Extensions

Ries van Twisk typo3 at rvt.dds.nl
Thu Apr 12 20:57:57 CEST 2007


hey Steffen,

as soon as you work with other locales that can be multi-byte
then you should use these functions.
This is also true for values that come from posts/get's
when the website was set to multu-byte like utf-8.

Ries

On Apr 12, 2007, at 1:36 PM, Steffen Kamper wrote:

>
> "Ingo Renner" <typo3 at ingo-renner.com> schrieb im Newsbeitrag
> news:mailman.1.1176402192.13172.typo3-dev at lists.netfielders.de...
>> Steffen Kamper wrote:
>>
>>> I looked in the core for an universal method, but didn't found a  
>>> strict
>>> rule.
>>> How should this be done ? mb-functions are not available on all  
>>> systems,
>>> and there is a flag in installtool, iconv also, ...
>>
>> AFAIR there're some methods in csConv ...
>>
>> Ingo
>
> Hi Ingo,
>
> good hint, ty  - i didn't realized before.
> There are functions in t3lib_cs like
> substr
> strlen
> crop
> etc.
>
> So every input string should be handled with tis methods to be sure.
> Additional question: Are the form values has to be handled same way ?
>
> vg Steffen
>
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

-- 
Ries van Twisk
Freelance Typo3 Developer
email: ries at vantwisk.nl
web:   http://www.rvantwisk.nl/
skype: callto://r.vantwisk








More information about the TYPO3-dev mailing list