ID:               17298
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Bogus
 Bug Type:         Strings related
 Operating System: linux 2.4.18
 PHP Version:      4.2.0
 New Comment:

It's really a locale issue. Not PHP problem in, you just need to set
the locale correctly.

Either via environment var LC_ALL or setting it in the script with
setlocale(), e.g.:

setlocale(LC_ALL, "fi_FI");

--Jani



Previous Comments:
------------------------------------------------------------------------

[2002-05-17 18:40:04] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2002-05-17 18:13:38] [EMAIL PROTECTED]

I can't reproduce this..it might be some locale issue.
Which linux distro?

--Jani


------------------------------------------------------------------------

[2002-05-17 18:04:34] [EMAIL PROTECTED]

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

Reply via email to