Language support

Hi,

In my web page, I am facing when displaying Japanese language.

In database the original Japanese letters are inserted.

After, when displaying these Japanese letters in my web pages, It displaying as junk characters.

In my connection string i have also used the "charset"=>"utf8",

In my html page also i have set charset as utf8.

Still i am getting Japanese letters as junk characters.

Anybody kindly give me the solution.

…your filesystem/db charset is utf8?

Thanks for your reply,

I have given charset utf8 for all my tables.

Is any problem when i removing charset in main.php?.

Omitting the charset will use the database server’s default charset, which is not always utf-8:

http://www.yiiframework.com/doc/api/1.1/CDbConnection#charset-detail

Also make sure you have your html output header set to utf8:


<meta http-equiv="Content-Type" content="text/html; charset=utf-8">