Skip to content

Common filters should use mb_* functions for string manipulation #2

@lfbittencourt

Description

@lfbittencourt

Hello,

Just a note here: upper, lower, capfirst and lowerfirst filters won't work with accented chars in words like "Luís Fernando". You should use mb_strtoupper, mb_strtolower and mb_convert_case functions to achieve the right behaviors.

If you like, I can submit a PR with some tests.

P.S.: how this package has so few stars?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions