I have a PHP file which inserts $mail and $password in my database. See code below. My php file, my BD and my table fields are in utf-8. So what I do not understand is why the mail I send "Philémon" goes as "Philémon" in my table. By the way I know it is not a mail format. It is just for the sake of testing.
My PHP:
<?php
header('Content-Type: text/html; charset=utf-8');
require("php/connect.inc.php");
$mail = mysql_real_escape_string("Philémon");
$password = sha1("pass123");
mysql_query("INSERT INTO ENS_MEMBRES (ENS_MAIL, ENS_PASS) VALUES ('$mail','$password')");
?>
mail()?