php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: agri at desnol dot ru
New email:
PHP Version: OS:

 

 [2004-01-26 08:42 UTC] 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.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-28 21:36 UTC] iliaa@php.net
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. 
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 01:03:38 2021 UTC