se hai problemi con i caratteri UTF-8 usa htmlentities:

Codice PHP:
$testo_convertito htmlentities($testo_incorrettoENT_QUOTES'UTF-8');