Unicode Problem in yii

Hello guys, i’m getting problems in displaying french characters like “ê” and “à” in a page. I added a header <meta http-equiv=“Content-Type” content=“text/html; charset=utf-8”/> to my page but it still doesnt work. However on another page i’m extracting RSS from other websites and i don’t have any problem displaying the characters there. Anyone knows what might be causing this?

e.g




<?php

echo "être";

?>



The result i get is:

�tre

So you solved the problem with displaying from the database ? - http://www.yiiframework.com/forum/index.php?/topic/14339-problem-displaying-foreign-characters/page__p__71056__fromsearch__1#entry71056

As for the echo… your PHP source file is not encoded in UTF-8 and saved without BOM…

Check here for a similar problem - http://www.yiiframework.com/forum/index.php?/topic/14040-attributelabels-charset/page__p__69219#entry69219

Rahul, you already asked this question here:

http://www.yiiframew…ign-characters/

You should not create new topics with the same question. Moreover you already got the answer there - you only have to read.

EDIT:

I see, mdomba already pointet you to that post. Please read the wiki article again. Especially the section on how to set the content type header in Apache:

http://www.yiiframework.com/wiki/16/how-to-set-up-unicode/#hh5