T
T
trofimovfedor2021-05-03 11:26:07
PHP
trofimovfedor, 2021-05-03 11:26:07

Why does the encoding change incorrectly?

Faced such a problem. When executing the code below, question marks are displayed instead of Cyrillic.

exec ('ping',$output);
$output = implode('', $output);
$output = mb_convert_encoding($output, "Windows-1252", "CP866");
echo $output;

I do not know with what it can be connected.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question