batch change encoding to UTF-8 for several text (php) files

You can use recode
recode UTF-8 *.php -v

provided that all the files have the same encoding.
Otherwise you can try with something like
iconv -f US-ASCII -t UTF-8 *.php

a minor problem

It could be an apparent problem if there aren’t non-ascii characters in a file: then these files are yet recognized, with
file -i --mime-encoding *
as us-ascii.
So you can add a non ascii character, like è:
sed -i -e “$aè” *.php

and afterwards redo the command “recode” as above and replace some ascii expression, like agrave; with UFT-8 à character.
Eventually you will delete the “è” from the end of the files.

“travasare” del testo greco antico da fonte UTF-8

Si trovano su internet testi in greco antico resi con unicode (UTF-8). Per salvarli sul proprio PC non è detto che basti un copia e incolla: bisogna vedere dove si incolla. Abbiamo provato, senza successo, con Quanta e con RJ-Texted. Invece siamo riusciti con Kompozer: ha incollato giusto il testo al primo colpo. Non solo, ma è stato facile anche togliere tutti i fatidiosissimi link posti da Perseus, e togliere poi, con pochi clic anche tutta la formattazione, per avere così un testo perfettamente pulito (in UTF-8).