我正在尝试在收到电子邮件时使 utf-8 工作。填满表格后,字符显示为代码 if is ç/Ç 显示 &$ 例如:Avan ç ado 显示 Avan &$ ado
我尝试使用“ header('Content-Type: text/html;charset=UTF-8'); ”但仍然无法正常工作,请帮助我,非常感谢...
这是我的代码...
<?php
//Get Data do Site
$name = strip_tags($_POST['name']);
$email = strip_tags($_POST['email']);
$service = strip_tags($_POST['service']);
$phone = strip_tags($_POST['phone']);
$phoneconfirm = strip_tags($_POST['phoneconfirm']);
$priority = strip_tags($_POST['priority']);
$subject = strip_tags($_POST['subject']);
$message = strip_tags($_POST['message']);
// Send Message
header('Content-Type: text/html;charset=UTF-8');
mail( "THEEMAIL@GOES.HERE", "Via Website",
"De: $name\n E-Mail: $email\n Serviço: $service\n Telefone/Celular: $phone\n Ligar/Retornar: $phoneconfirm\n Prioridade: $priority\n Assunto: $subject\n Mensagem:\n $message",
"Para: WebSite");
?>