all right?!
You need to add one header (header) encoding for the function mail().
<?php
$name = $_POST['nome'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent="From: $name \n Message: $message";
$recipient = "[email protected]";
$subject = "Contact Form";
$headers = 'From: '. $email . "\r\n";
$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
mail($recipient, $subject, $formcontent, $headers); or die("Error!");
echo "Obrigado! Entraremos em contato em breve.";
header( "refresh:5;url=index.html");
?>
Take a look at documentation PHP to better understand the function mail().
Possible duplicate of Doubt with charset=iso-8859-1 and utf8
– Woss
see if your html is set to utf-8 and lang, if this happens in php it also checks for it. '<? php header("Content-type: text/html; charset=utf-8"); ? >' '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' , or you can put it directly in the form '<form Accept-charset="utf-8" ...>'
– Eduardo
All of the above attributes are already in my HTML, I still added the property in the form; but the error persists.
– Leonardo Carvalho