zebdaag
02-20-2007, 09:27 AM
Hi i having some problem with substracting information from my database:
I have in my database the word: Scandinavië
This is substracted from the database but it is converted to utf8 so this is what it looks like:
$row["land"] = Scandinavië
Then i have an if funtion like this:
$selected = Scandinavië;
if($row["land"] == $selected){
echo "this doesn't work";
}
That didn't work that's why i tried this:
$selected = Scandinavië;
if($row["land"] == utf8_decode($selected)){
echo "this works on safari and firefox doesn't work on IE";
}
This works on Safari and Firefox on the mac but it doesn't work on IE6
Is there a way to convert one or both variables so they match in al browsers??
I have in my database the word: Scandinavië
This is substracted from the database but it is converted to utf8 so this is what it looks like:
$row["land"] = Scandinavië
Then i have an if funtion like this:
$selected = Scandinavië;
if($row["land"] == $selected){
echo "this doesn't work";
}
That didn't work that's why i tried this:
$selected = Scandinavië;
if($row["land"] == utf8_decode($selected)){
echo "this works on safari and firefox doesn't work on IE";
}
This works on Safari and Firefox on the mac but it doesn't work on IE6
Is there a way to convert one or both variables so they match in al browsers??