Answer the question
In order to leave comments, you need to log in
Why are there several letters in the wrong PHPMail encoding?
The code is encoded:
$headers .= "Content-type: text/html; charset=utf-8\r\n";
+
$mail->CharSet = 'utf-8';
скоÐ �іюйте
налÐ �штуваннях
$message = iconv("UTF-8", "WINDOWS-1251", $message);
$message = mb_convert_encoding("UTF-8", "WINDOWS-1251", $message);
$message = mb_detect_encoding($message , mb_detect_order(), true) === 'UTF-8' ? $message : mb_convert_encoding($message , 'UTF-8');
Answer the question
In order to leave comments, you need to log in
In fact, the question is relevant to this day. In the letter, the formatting and text are normal, but this is the same as in the picture in each letter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question