ID: 27047 Updated by: [EMAIL PROTECTED] Reported By: agri at desnol dot ru -Status: Open +Status: Bogus Bug Type: mbstring related Operating System: linux PHP Version: 4.3.4 New Comment:
You need to use mbstring string functions, which are documented at http://www.php.net/mbstring/. All other string functions in PHP are byte based, meaning that they won't work (properly) with multibyte strings. Previous Comments: ------------------------------------------------------------------------ [2004-01-26 08:42:22] agri at desnol dot ru Description: ------------ functions ucfisrst ... strtoupper and so on do not convert case of non-latin chars in utf8 string i.e. if setlocale (en_US.utf8). In my script i want to convert case of cyrillic chars. i'm using ru_RU.utf8 (it doesn't metter en_US or ru_RU.. according to glibc locale all of them use the same table of conversion... i checked both). i looked through the source of those functions and there are byte-by-byte convertion of chars... of course it won't work for utf-8. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27047&edit=1
