I was faced with not correct counts the number of written cyrillic letters, propose use function mb_strlen, because strlen counts bytes instead letterss instead letters.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_strlen-2956193-2.patch | 889 bytes | r.nabiullin |
I was faced with not correct counts the number of written cyrillic letters, propose use function mb_strlen, because strlen counts bytes instead letterss instead letters.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_strlen-2956193-2.patch | 889 bytes | r.nabiullin |
Comments
Comment #2
r.nabiullin commentedComment #3
r.nabiullin commentedComment #5
jaypanThanks for the patch. It's been applied.
Comment #7
andypostWhy hardcoding mb* instead of using
\Drupal\Component\Utility\Unicode::strlen()???Comment #8
andypostneeds follow-up
Comment #9
andypost@nabiyllin filed follow-up #2969721: Use core wrapper instead of mb_strlen()
Comment #10
jaypanFor the same reason lots of things are not done by people: Because I didn't know it existed.