I am learning yii2, I have issue for display utf8 in page main.php this is error.
LO?I S?N PH?M
I have used
header('Content-Type: text/html; charset=utf-8');
but issue is not solved
Please help me fix it.
Thank you so much
I am learning yii2, I have issue for display utf8 in page main.php this is error.
LO?I S?N PH?M
I have used
header('Content-Type: text/html; charset=utf-8');
but issue is not solved
Please help me fix it.
Thank you so much
I struggled a long time with the same problem. In my case I used Eclipse for php, and the encoding parameter for all my files was different from utf-8. I had to change the properties of my environment so my code files themselves where utf-8!