Bug #60425 [Opn]: php 5.3.3 - Duild Date: Jul 21 2010 20:00:47

From: Date: Thu, 01 Dec 2011 15:23:35 +0000
Subject: Bug #60425 [Opn]: php 5.3.3 - Duild Date: Jul 21 2010 20:00:47
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165623@lists.php.net to get a copy of this message
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

« previous php.bugs (#165623) next »