我有一个联系人页面(contact.php),当人们填写联系方式时发送一个表单(formsend.php)。PHP表单 - 发送的电子邮件不支持字符
的contact.php有:
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="ISO-8859-1">
Contact.php页是好的,我的显示葡萄牙拉丁字符罚款(A,E等)。
但是,当我收到的电子邮件(当它使用formsend.php),我得到的领域的人搞砸字符签署了:若昂是JOA£O等
在formsend.php我已经尝试添加:
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
和
header('Content-Type: text/html; charset=iso-8859-1');
和
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="ISO-8859-1">
。什么都没有
看来这是在这里失败的formsend.php文件。
我该怎么做才能确保在电子邮件中用用户信息接收格式正确的字符?
切换到utf8。 – 2012-06-14 21:32:26
将电子邮件编码切换到utf8。 – hakre
– zundarz