By thedavidmeister on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
php ucwords() and lcfirst() can corrupt utf8 text under non-utf8 locales.
Drupal had incomplete Unicode support relative to full set of PHP core string manipulation functions as it had no equivalent for ucwords() or lcfirst().
Unicode::ucwords() and Unicode::lcfirst() were added to Drupal\Component\Utility\Unicode as direct replacements for native PHP ucwords() and lcfirst().
Impacts:
Module developers