Edit report at https://bugs.php.net/bug.php?id=60425&edit=1

 ID:                 60425
 Updated by:         johan...@php.net
 Reported by:        ol_b at meta dot ua
 Summary:            php 5.3.3 - Duild Date: Jul 21 2010 20:00:47
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            Strings related
 Operating System:   Windows XP SP3
 PHP Version:        5.3.8
 Block user comment: N
 Private report:     N

 New Comment:

The function works, as all of "core" PHP on binary data. You can use 
mb_convert_case with MB_CASE_TITLE option for non-ASCII text.


Previous Comments:
------------------------------------------------------------------------
[2011-12-01 15:23:35] ol_b at meta dot ua

Header shows file charset.

------------------------------------------------------------------------
[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

Reply via email to