I'm trying to send a mail with Hebrew to a hotmail user, but the user receives the mail in gibberish instead of hebrew, and I tried switching the char encoding with no avail....
Here's my code:
$name = $_POST['name'];
$place = $_POST['place'];
$phone = $_POST['phone'];
$mail = $_POST['mail'];
$name = str_replace(""", "''", $name);
$place = str_replace(""", "''", $place);
$phone = str_replace(""", "''", $phone);
$mail = str_replace(""", "''", $mail);
/*
$name = htmlentities($name, ENT_QUOTES);
$place = htmlentities($place, ENT_QUOTES);
$phone = htmlentities($phone, ENT_QUOTES);
$mail = htmlentities($mail, ENT_QUOTES);
*/
print ("$name <br> $place <br> $phone <br> $mail");
mail("i_eran@hotmail.com",$name,"Residence of: $place \nPhone: $phone \nMail: $mail", "From: Site");