Problem with special characters (umlauts) / pulling from mysql
Posted 27 February 2006 - 11:58 PM
ä = ä
ö = ö
Now, when entering a search phrase to a field on my page, ofcourse I would enter something like "öland".. But when the database states this as öland, it doesn't match and no results are found.
So, simply - how to change the special characters in my search string into these "umlauts" "on fly"? - I looked at the manual and came to the conclusion and after testing, that htmlentities or such won't/wouldn't help?
Or am I completely wrong..?
thanx in advance
Posted 28 February 2006 - 12:07 AM
$text = str_replace("ö", "ö", $text);
Where $text is the text that contains the characters.
Posted 28 February 2006 - 12:11 AM
[a href=\"http://uk.php.net/manual/en/function.get-html-translation-table.php\" target=\"_blank\"]php html translation table[/a]
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users