There is a script that sends an e-mail notification, notifications come in the form of cracks instead of Russian text.
utf-8 without pto is in notepad++
, mysql
tables are utf-8, in php files utf-8 is indicated everywhere, so not on the site not in the database there are no problems with encoding, here come the email messages except for the subject of the letter, the content of the letter and the output with mysql in the letter contains these funny characters п╢я─п╟п╟п╟п╟п╟я│я┌п╣ я▀п╡п╟п╡п╟
function email($to, $subject, $body) { mail($to, $subject, $body, 'From: mail@mail.ru'); } function register_user($query) { array_walk($query, 'array_sanitize'); $query['password']= md5($query['password']); $fields = '`' . implode('`, `',array_keys($query)) . '`'; $data = '\'' . implode('\', \'', $query) . '\''; mysql_query("INSERT INTO `users` ($fields) VALUES ($data)"); email($query['email'], 'активация аккаунта', "приветствуем" . $query['first_name'] . "\n\nпройдите по следущей ссылке для завершения регистрации :\n\n ".PATH."www/activate.php?email=" . $query['email'] . "&email_code=".$query['email_code'] ."\n\n- "); }
Account activation - comes in a normal form, all other content is unknown to science symbols