how to realize i18N

I want display title in Chinese . I do as this,


// uncomment the following to define a path alias

// Yii::setPathOfAlias(‘local’,‘path/to/local-folder’);

// This is the main Web application configuration. Any writable

// CWebApplication properties can be configured here.

return array(


[u]'name'=&gt;Yii::t('comm', 'title') ,[/u]

and I create a dir ch_zn ,then a comm.php like this,


return array(



why, my page still cannot display chinese characters?

help! help!

thanks in advance.

you need to set the application language to chinese in some way either in a controller or in the config file. (i think chinese is zh-CN n not zn-CH so u should probably use that, not that it really has an effect on the results, just for correctness(even a word?)).






                    'charset' =&gt; 'utf8',