[TYPO3-dev] Content-Length header wrong?

Dmitry Dulepov typo3 at accio.lv
Thu May 18 07:42:19 CEST 2006


Hi!

Ries van Twisk wrote:
> the strlen function is not multibyte save... Try changing it to one of
> the multi-byte save version.

No, it will not work. Suppose, you have strlen("āāā"), it will return 6
(because of two bytes per character) but mb_strlen("āāā") will return 3
(so twice less than actual content length is).

Dmitry.
-- 
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)




More information about the TYPO3-dev mailing list