#22931 [Asn->Csd]: Array Sort/Multisort -> wrong string sorting with special, national characters
| From: | moriyoshi@php.net | Date: | Fri, 30 Jan 2004 07:49:41 +0000 |
| Subject: | #22931 [Asn->Csd]: Array Sort/Multisort -> wrong string sorting with special, national characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54170@lists.php.net to get a copy of this message | ||
ID: 22931
Updated by: moriyoshi@php.net
Reported By: marek at lewczuk dot com
-Status: Assigned
+Status: Closed
Bug Type: Zend Engine 2 problem
Operating System: Linux/Windows
PHP Version: 5.0.0-dev
Assigned To: moriyoshi
New Comment:
Remember to set your locale correctly.
Previous Comments:
------------------------------------------------------------------------
[2003-03-27 10:47:08] moriyoshi@php.net
This may be fixed in PHP5.
------------------------------------------------------------------------
[2003-03-27 10:24:08] marek at lewczuk dot com
Sorry... I have read about usort and strcoll -> yes it's working with
setLocale, but... array_multisort still not working ??
------------------------------------------------------------------------
[2003-03-27 10:16:31] marek at lewczuk dot com
Sorting an array has a very important bug. If your app is using e.g.
ISO-8859-2 charset and strings array use special chars like Å,Ä...
PHP doesn't sort strings which use them. I have tried to use setLocale
(setLocale is working correctly with strtoupper, strtolower etc.) but
nothing. The problem is also in UTF8 charset. This very serious
problem...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22931&edit=1