Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP编译器与Umlaut存在问题_Php_Phpmailer_Diacritics_Forms_Http Post - Fatal编程技术网

PHP编译器与Umlaut存在问题

PHP编译器与Umlaut存在问题,php,phpmailer,diacritics,forms,http-post,Php,Phpmailer,Diacritics,Forms,Http Post,我已经建立了一个反馈表,但是当涉及到元音变异时,它是不稳定的。例如,有时它会将一个“ö”表示为“ö”(正确),但有时我会得到像“H”这样奇怪的词ร¼ttenkÃse”而不是“Hüttenkäse” 页面编码(在Dreamweaver中)设置为Unicode(UTF-8),在phpMail中,我也对其进行了更改: /** * The character set of the message. * @type string */ public $CharSet = 'UTF-8'; 我在se

我已经建立了一个反馈表,但是当涉及到元音变异时,它是不稳定的。例如,有时它会将一个“ö”表示为“ö”(正确),但有时我会得到像“H”这样奇怪的词ร¼ttenkÃse”而不是“Hüttenkäse”

页面编码(在Dreamweaver中)设置为Unicode(UTF-8),在phpMail中,我也对其进行了更改:

/**
 * The character set of the message.
 * @type string
 */
public $CharSet = 'UTF-8';
我在send.php的开头尝试了以下操作:

header('charset=utf-8'); 
但是我从服务器收到了一条错误消息,虽然邮件已经发送了,但是主题中没有正确的umlaute,所以这似乎不起作用

send.php由以下表单触发:

<form method="post" action="send.php">

send.php如下所示:


感谢adlag的支持,以下是解决方案:

$mail->CharSet ="UTF-8";

非常感谢并为多余的帖子感到抱歉,所以这为我解决了它:$mail->CharSet=“UTF-8”;