A prescindere da codifiche, io preferisco sempre questa bella funzioncina semplice semplice che toglie da svariati inconvenienti...
Codice PHP:
/* Replace the special html characters */
function replace_special_character($text) {
ereg_replace('à', 'à', $text); // Replace à with à
ereg_replace('è', 'è', $text); // Replace è with è
ereg_replace('é', 'é', $text); // Replace é with è
ereg_replace('ì', 'ì', $text); // Replace ì with ì
ereg_replace('ò', 'ò', $text); // Replace ò with ò
ereg_replace('ù', 'ù', $text); // Replace ù with ù
return $text;
}
Basta invocarla prima di inserire i valori nel db...una bomba!!!