All the good time!
When everything was in windows-1251, everything worked fine. The hieroglyphs in the letter appeared after translating everything to utf-8.
Script codes in utf-8, in html head meta http-equiv = "Content-Type" content = "text / html; charset = utf-8".
Similar topics googled, nothing has helped yet. To use the Latin in the From field not to offer, because need cyrillic.
When a letter arrives in the mail, then in the general list of letters, in the field from whom, the Cyrillic alphabet is displayed correctly . When you enter the letter itself, the same text in the field from whom , only Latin letters and the sender's e-mail are correctly displayed, Cyrillic characters are displayed . In bold there is something that is confusing, everything is fine in the general list, it means that I am sending everything correctly, but why does everything change in the letter itself?
Also tried the options:
'subject' = '=?koi8-r?B?'.base64_encode(convert_cyr_string("ΠΠΎΠ²ΠΎΠ΅ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅", "w","k")).'?='; 'subject' = '=?utf-8?B?'.base64_encode(convert_cyr_string("ΠΠΎΠ²ΠΎΠ΅ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅", "w","k")).'?='; 'subject' = '=?koi8-r?B?'.base64_encode("ΠΠΎΠ²ΠΎΠ΅ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅").'?='; 'subject' = '=?utf-8?B?'.base64_encode("ΠΠΎΠ²ΠΎΠ΅ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅").'?=';
On From no effect.
Php code:
<php $mail = array( 'to' => "tomail@site.ru", 'subject' => "ΠΠΎΠ²ΠΎΠ΅ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅", 'message' => "<html><body><p>Π’Π΅ΠΊΡΡ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ</p></body></html>", 'headers' => "MIME-Version: 1.0\r\n"."Content-type: text/html; charset=utf-8\r\n"."From: ΠΡΠ° ΠΊΠΈΡΠΈΠ»Π»ΠΈΡΠ° Π²ΡΠ²ΠΎΠ΄ΠΈΡΡΡ ΠΈΠ΅ΡΠΎΠ³Π»ΠΈΡΠ°ΠΌΠΈ <frommail@site.ru>\r\n"); mail($mail['to'], $mail['subject'], $mail['message'], $mail['headers']);