render - encoding problems [solved]

I have referred to cookbook on solving special symbols localization problems, and after changing any of main files eg. index.php (main) GD captcha stops working, and IE stops recognizing .css files, I believe this could be overall render problem. What solution could be in this case(use of special characters in each page)?

Detailed problem stated here:

Thanks in advance!



I have updated problem with pictures of internationalization and localization issue. Please refer to:

Thank You!

Just add on your ‘rootApp/protected/config/main.php’ the correct charset of your app on the root of the return array, like that:


So change your main layout to use the charset off your app, changing the meta tag of header section:

<meta http-equiv="Content-Type" content="text/html; charset=<?= Yii::app()->charset ?>" />

And your problems are solved, without need to do conversions and etc.