per sostituire i caratteri accentati presenti in una stringa sto provando:

codice:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input name="testo" value="" type="text" />
<input type="submit" name="submit" value="Cerca" />
</form>

<?php
$testo = $_POST['testo'];
$testo = str_replace('è', 'e', $testo);

echo $testo;
?>
dovrebbe sostituire è con e ma non funziona come mai?