ID: 49232 Comment by: sjoerd-php at linuxonly dot nl Reported By: svecpetr at email dot cz Status: Open Bug Type: Recode related Operating System: linux PHP Version: 5.3.0 New Comment:
Thank you for your bug report. You can use mb_strtolower() to solve your problem. Previous Comments: ------------------------------------------------------------------------ [2009-08-12 10:41:42] svecpetr at email dot cz Description: ------------ function strtolower doesn't work good when try to lower Czech characters (with diacritics) written in utf-8 Reproduce code: --------------- try this setlocale(LC_ALL, "cs_CZ.utf8"); $str = "ÉÌÈØÝÁÍÉÓÏÚÙ"; echo strtolower($str); // correct output is: // éìèøýáíéóïúù // but you will see something else Expected result: ---------------- correct function Actual result: -------------- see example above ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49232&edit=1
