Russian language in console command yii2?

Hello. I created a console controller there is action in this action from the database goes to the entry which has a field with the Russian text. How to make text in the console display Russian characters?
July 4th 19 at 22:53
1 answer
July 4th 19 at 22:55
Before output to the console convert UTF-8 to CP866.
It did not help. Did echo mb_convert_encoding('I','CP866'); put question marks. - alphonso_Abbott commented on July 4th 19 at 22:58
: The file will saved in UTF-8?
Try iconv('UTF-8', 'CP866', 'I'). - mertie59 commented on July 4th 19 at 23:01

Find more questions by tags PHPWindowsYii