ucwords is one of the core functions of PHP that blissfully ucwords encodings other than ASCII or non-Latin-1. * To process multibyte strings and / or non-ASCII strings, you should use multibyte mb_convert_case :
mb_convert_case($str, MB_CASE_TITLE, 'UTF-8')
* I'm not quite sure if it works only with ASCII or, at least, with Latin-1, but I wouldn't even figure it out.
source share