I'm stuck, no improvement. I have change the form a little bit so that you can test if you wish.
http://www.anti-aging-solutions.ch/j...est/test1.html
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>test specials characters</title>
</head>
<body>
After filling out this form, a mail will be sent to you . Try first by filling out with a word not containing a special character, and then another mail containing a special character. You will see that in the first mail my plain text that contain special character will display correctly, but not in the second mail. <br/><br/>
<form name="test" action="test1.php" method="POST">
<div>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Enter for example eleve in the first mail and
élève in the second<br />
<input type="text" name="name" size="40" /><br /></td>
</tr>
<tr>
<td>email<br />
<input type="text" name="email" size="40" /></td>
</tr>
<tr>
<td><input name="submit" type="submit" value=" send " />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
And the php script:
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
$email = $_POST['email'];
$name = $_POST['name'];
// Print the message.
print " Thank you, you enter élève";
// Send the email.
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
$message .= " You have enter $name (élève), thank you ";
mail ("$email", 'test specials characters', $message, $headers);
?>
</body>
</html>
Thanks for your help.
Bookmarks