Ho risolto aggiungendo la funzione htlmentities()!!! così mi restituisce tutti i caratteri corretti