Ho messo il Doctype strict e UTF-8 ma quando nel textarea scrivo un carattere speciale a video appare una A maiuscola.

il codice che ho per il textarea:

$messaggio = ucfirst(htmlentities(stripslashes(trim($_POST['messaggio']))));