Edit report at http://bugs.php.net/bug.php?id=54315&edit=1
ID: 54315 Updated by: paj...@php.net Reported by: sms at inbox dot ru Summary: Some string functions doesn't work as expected with cyrillic characters -Status: Open +Status: Bogus Type: Bug Package: Strings related Operating System: Windows 7 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Please see the note about Windows and Locale strings at http://www.php.net/setlocale For a portable and reliable locale support, I would suggest to move to intl, http://www.php.net/intl Previous Comments: ------------------------------------------------------------------------ [2011-03-19 12:16:55] sms at inbox dot ru Description: ------------ At least two string functions fail with cyrillic characters (cp1251) as of version 5.3.6: strtolower() and strtoupper(). Test script: --------------- setlocale(LC_ALL, 'ru_RU'); echo 'strtoupper: '.strtoupper('test ÑеÑÑ').'<br>strtolower: '.strtolower('TEST ТÐСТ'); Expected result: ---------------- strtoupper: TEST ТÐСТ strtolower: test ÑеÑÑ Actual result: -------------- strtoupper: TEST ÑеÑÑ strtolower: test ТÐСТ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54315&edit=1