Bug #17298 Updated: stristr is not case-insensitive with scandinavian alphabets
| From: | hannu dot maksimainen at edu dot hel dot fi | Date: | Fri, 17 May 2002 22:40:04 +0000 |
| Subject: | Bug #17298 Updated: stristr is not case-insensitive with scandinavian alphabets | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-7962@lists.php.net to get a copy of this message | ||
ID: 17298
Updated by: hannu.maksimainen@edu.hel.fi
Reported By: hannu.maksimainen@edu.hel.fi
Status: Feedback
Bug Type: Strings related
Operating System: linux 2.4.18
PHP Version: 4.2.0
New Comment:
Mandrake 7.2 with kernel 2.4.18
apache 2.0.35
php 4.2.0
I also tested this with my friend's server and it didn't work there
either. He has Debian Linux (2.4.16 kernel) with apache 1.3.23 and php
4.1.2.
Previous Comments:
------------------------------------------------------------------------
[2002-05-17 18:13:38] sniper@php.net
I can't reproduce this..it might be some locale issue.
Which linux distro?
--Jani
------------------------------------------------------------------------
[2002-05-17 18:04:34] hannu.maksimainen@edu.hel.fi
I have a string "There are Ä and ä in scandinavian alphabets".
I want stristr function to return everything after the first occurence
of "ä" (capital Ä in this case) in my script:
$str = "There are Ä and ä in scandinavian alphabets";
echo stristr($str, "ä");
It returns "ä in scandinavian alphabets".
It should return "Ä and ä in scandinavian alphabets".
--
With 'normal' alphabets it works ok. Like this:
$str = "There are B and b in scandinavian alphabets";
echo stristr($str, "b");
and it returns "B and b in scandinavian alphabets"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17298&edit=1