|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27047 php dont convert case of characters in multibyte (utf-8) string
Submitted: 2004-01-26 08:42 UTC Modified: 2004-01-28 21:36 UTC
From: agri at desnol dot ru Assigned:
Status: Not a bug Package: mbstring related
PHP Version: 4.3.4 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: agri at desnol dot ru
New email:
PHP Version: OS:


 [2004-01-26 08:42 UTC] agri at desnol dot ru
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-28 21:36 UTC]
You need to use mbstring string functions, which are 
documented at All other 
string functions in PHP are byte based, meaning that they 
won't work (properly) with multibyte strings. 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 09:01:28 2024 UTC