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
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.
Password:
Status:
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: Sat Oct 16 22:03:34 2021 UTC