I'm developing a web and I want to print some information from DB. I have found the problem that information with "grave" accent it is not possible to convert to upper case.
For example, I have the following information: John Seràn Mollò and I need to convert it to upper case. This should be the result: JOHN SERÀN MOLLÒ
I'm trying the following code:
$filtre = array("à", "è", "ò");
$modificacions = array("a", "e", "o");
$phrase = str_replace($filtre, $modificacions, $vols[$i]['crew']);
var_dump($phrase);
echo strtoupper($phrase); ?>
In that case, the result should be JOHN SERAN MOLLO (without the accents), but I get this: JOHN SERàN MOLLò.
What I'm doing bad? How can I get JOHN SERAN MOLLO (without accents) or, if it's possible, how can I could get JOHN SERÀN MOLLÒ (accents in upper case).