Ho trovato la soluzione, magari a qualcuno interessa.
Ho usato sempre htmlentities, ma ho imposto anche il set di caratteri, cosa che prima non facevo:
htmlentities ($stringa , ENT_QUOTES, 'UTF-8' , false)
Ho trovato la soluzione, magari a qualcuno interessa.
Ho usato sempre htmlentities, ma ho imposto anche il set di caratteri, cosa che prima non facevo:
htmlentities ($stringa , ENT_QUOTES, 'UTF-8' , false)
One day even the war will bow to the sound of a guitar (Jimi Hendrix)