#27047 [Opn->Bgs]: php dont convert case of characters in multibyte (utf-8) string
| From: | iliaa@php.net | Date: | Thu, 29 Jan 2004 02:36:24 +0000 |
| Subject: | #27047 [Opn->Bgs]: php dont convert case of characters in multibyte (utf-8) string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54097@lists.php.net to get a copy of this message | ||
ID: 27047
Updated by: iliaa@php.net
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