#22931 [Opn]: Array Sort/Multisort -> wrong string sorting with special, national characters
| From: | marek at lewczuk dot com | Date: | Thu, 27 Mar 2003 16:24:08 +0000 |
| Subject: | #22931 [Opn]: Array Sort/Multisort -> wrong string sorting with special, national characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36593@lists.php.net to get a copy of this message | ||
ID: 22931
User updated by: marek at lewczuk dot com
Reported By: marek at lewczuk dot com
Status: Open
Bug Type: Arrays related
Operating System: Linux/Windows
PHP Version: 4.3.0
New Comment:
Sorry... I have read about usort and strcoll -> yes it's working with
setLocale, but... array_multisort still not working ??
Previous Comments:
------------------------------------------------------------------------
[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