Subject: | Accented Characters with html Form |
Posted by: | tochiro (nospam@nospam.com) |
Date: | Tue, 10 Apr 2007 |
Hello,
I have a problem with accented characters written by visitors of my
web page on a contact form. These characters are converted to weird
signs and I do not understand why.
The page with the contact form is written in French with the following
charset:
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
The form data are sent to a PHP page. Here is part of the PHP code:
$formContent = "Email: ".$_POST['email']."
"
."Name: ".$_POST['name']."
"
mail($myEmail,$subject,$formContent,"From: $myEmail
Reply-To:
$myEmail
Cc: $me");
What sould I do? Thank you for your advice.
Cheers