|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 - 23 = ?
Subscribe to this entry?

 [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: Sun Jul 21 01:01:28 2024 UTC