Change record status: 
Project: 
Introduced in branch: 
8.x
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