I have read that in order to localize Yii framework I should change all the webapp files to UTF8. I sure done that but strange things happened:
Did I went on wrong way by changing main files to UTF8? Because main problem is my language character to application name that contains non ASCII/ANSI letter.
Also it shows[fixed]:
Warning: Unexpected character in input: ' in C:\wamp\www\SSIS\protected\config\main.php on line 50
- fixed this message by copy-paste source to notepad and then saved to UTF8
Main this is WHY CAPTHCA stops working after changing config/main.php to UTF8
Thanks for help mates!
maybe I should paraphrase question to this: "How do I create yii webapp with non English(ASCII/ANSI) symbols?"
Because I have a feeling that I went on wrong way by changing files to utf8:) IE stopped displaying .css files too
In order to display correctly special language characters I referred to: http://www.yiiframework.com/doc/cookbook/16/
WIN XP+WAMP+UltraEdit(for editing files)
Thanks in advance mates!
Is there any international staff that may help here?
I attached detailed pictures of this problem:
1.Pictures are made within IE(strict approach to bugs) (in FireFox same problems).
2.Details pointed out in each picture
3.Web app just generated with Yii - no modifications except mentioned in pictures.
It seems your main.php is saved with a BOM character at the beginning and that is causing all the problems you are seeing here.
With a little dirty work I have applied all application files to UTF-8 NO BOM (used UltraEdit). That helped me out a lot!
This solution SHOULD be updated in to the cookbook: http://www.yiiframework.com/doc/cookbook/16/
If anyone needs Yii 1.0.11 app with main files UTF-8 NO BOM, please pm. I will send attachment
qiang - Thank You again! This saved my day Yii gets up again!
Greetings from Lithuania and happy new year!
I added a note to the cookbook. Thanks for pointing this out. .