Hi,
I am using JQuery to submit a form with $.ajax() and then get the params in a php page to store them in a Database. My Pages are UTF8 encoded.
Everything works well when I use Firefox. However, with Internet Explorer, when the data has accent characters in it, it discards these completely.
I am using : $.ajaxSetup({ scriptCharset: "utf-8" , contentType: "application/x-www-form-urlencoded; charset=utf-8"});
and also specify contentType: "application/x-www-form-urlencoded; charset=utf-8",
in my $.ajax() call.
Anyone able to help me with this one ?
Many thanks !
As requested :
$.ajax({
type: "GET",
url: "processing/addcontact.php",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
scriptCharset: "utf-8",
data: dataString,
success: function() {
reset_new_contact_form();
$('#dialog-newcontact').dialog('close');
}
});
and
the form is sent to a simple mysql_real_escape_string($_GET["formval1"])
in a SQL query.