I store info into a MySQL Database via a PHP Form, the problem is that is a person inputs into the name field José Molína in the database it saves JOSé MOLíNA so it convert the accent mark into a non legible name and when I displys the info of the database in a form it shows Jos Molna (doesn´t show the letters with the accent marks).
the info of my table is ENGINE=MyISAM DEFAULT CHARSET=latin1 and the forms captures the info from a Wordpress site, could you please tell me what is the problem?
this is the way I sent the info to the database
$strNombres = htmlspecialchars(rtrim($_POST['nNombres']));
$Nombres= filter_var($strNombres, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);
the I tried with this one but no solution
$strNombres = strtoupper((rtrim($_POST['nNombres'])));
$Nombres = htmlentities($strNombres, ENT_QUOTES,'UTF-8');
to the manager: since you closed this question, can you tell me where is the duplicate sign where the question was edited? besides of that I would like to close my account, how come you close a question?
I just send a message via twitter for this.