Edit report at https://bugs.php.net/bug.php?id=60425&edit=1
ID: 60425 User updated by: ol_b at meta dot ua Reported by: ol_b at meta dot ua Summary: php 5.3.3 - Duild Date: Jul 21 2010 20:00:47 Status: Open Type: Bug Package: Output Control Operating System: Windows XP SP3 PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: Header shows file charset. Previous Comments: ------------------------------------------------------------------------ [2011-12-01 14:19:04] ol_b at meta dot ua Description: ------------ ucwords() - Uppercase the first character of each word in a string - doesn't work with UTF-8 Cyrillic text. http://cs10006.vk.com/u17937332/128685919/y_64c60ec2.jpg Test script: --------------- <?php header('Content-Type: text/html; charset=utf-8'); echo ucwords('test test test'); //Test Test Test echo ucwords('ÑеÑÑ ÑеÑÑ ÑеÑÑ'); //ÑеÑÑ ÑеÑÑ ÑеÑÑ ?> <?php header('Content-Type: text/html; charset=windows-1251'); //phpinfo(); echo ucwords('test test test'); //Test Test Test echo "<br>"; echo ucwords('ÑеÑÑ ÑеÑÑ ÑеÑÑ'); //ТеÑÑ Ð¢ÐµÑÑ Ð¢ÐµÑÑ ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60425&edit=1