What is happening with Russian letters when sending via PHP request to ... a mail, by e.g.? the \"hardcoded\" russians letters are displayed properly, but from the Form\'s t
As well as what Alix said about base64 in the RFC2047 encoded-word in your Subject line, you also need to tell the mailer to expect UTF-8-encoded text in the body of the mail, by adding headers:
MIME-Version: 1.0
Content-Type: text/plain;charset=utf-8
otherwise it's up to the mailer to guess, probably wrongly.
You need to base64_encode()
your $subject
, like this:
$subject = '=?UTF-8?B?' . base64_encode($subject) . '?=';
Make sure you're also saving your .php
file encoded as UTF-8 no BOM.
This question might also interest you: Is this the correct way to send email with PHP?
Check your encodings:
<meta http-equiv..>
tag)and use UTF-8 for everything.