From:             
Operating system: Windows XP SP3
PHP version:      5.3.8
Package:          Output Control
Bug Type:         Bug
Bug description:php 5.3.3 - Duild Date: Jul 21 2010 20:00:47 

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 bug report at https://bugs.php.net/bug.php?id=60425&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60425&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60425&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60425&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60425&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60425&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60425&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60425&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60425&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60425&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60425&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60425&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60425&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60425&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60425&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60425&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60425&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60425&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60425&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60425&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60425&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60425&r=mysqlcfg

Reply via email to