Answer the question
In order to leave comments, you need to log in
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;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question