prova:

htmlentities($tuavar,ENT_NOQUOTES,"UTF-8");