[SOLVED]post update from blog tutorial

Hi, my native language is spanish and it has simbols like this áéíóú on every text and the CHtml::encode method removes that… so i deal with it and now i can see some simbols on the post title for example.

But. when im going to modify a post… it loads the content, the tags, all except the title… if it has any symbol… there is no CHtml:encode or safeTransform … the database show me the title with the simbol. The post/update/number is not loading the title… is the model auto-cleaning the HTML ? Why is the content appearing if it has simbols… im using TinyMCE for content.

Thanks in advanced

Check: http://www.yiiframework.com/doc/cookbook/16/

  • UTF-8 NO BOM type files ;)

Thank you very much!

This solves my problem:

Set the main.php config in DB to utf8 in the array add: ‘charset’=>‘utf8’,

Set database tables to utf8_unicode_ci

Add the charset to the xHTML layout:


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