Issue Bug Closed

#79684Extbase validator StringLength fails on counting the length of text with umlauts

Karsten Nowak (undkonsorten) 02/08/17, 13:01 updated 10/02/18, 11:02

Description

In extbase StringLength validator on line 59 $stringLength = strlen($value); the length is wrong if umlaute (ä,ö,ü) in text. Probably also with other multibyte characters in text.

We fixed this quickly by using mb_strlen instead of strlen in our own extension and overwrite the StringLengthValidator class.

Is mb_strlen the solution for this problem? Is it planned to fix this problem in the validator soon?

Reviews 1