Ho aggiunto:

codice:
header('Content-type: text/html; charset=utf-8');
ora sembra funzionare. Se avete soluzioni più eleganti son bene accette! Gracias.