S
S
Stepan Yudin2015-03-13 09:25:18
PHP
Stepan Yudin, 2015-03-13 09:25:18

Why does phpmailer "beat" some cyrillic characters?

I seem to be doing everything right.
1) I specify the encoding when creating an instance $mail->CharSet = "UTF-8";
2) The encoding of the data and the script that creates the object and sends it is also UTF-8
The letter comes with the following fragments:
e8e99cbf18e44b7484dd67dd8b840815.pngUpdate:
We deal with the author of the library here: PHPmailer cyrillic charset trouble

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
corjeque, 2015-07-07
@corjeque

Possible multi-bit characters
To convert to utf-8

$value = mb_detect_encoding($value, mb_detect_order(), true) === 'UTF-8' ? $value : mb_convert_encoding($value, 'UTF-8');
encodings:

S
Stepan Yudin, 2015-03-13
@stepan_sib

Do not pay attention to the content in the letter - it escaped) for the test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question