Hello Bakers:

I found something interesting in CakePHP. It's about utf8.

Some bakers suggest below approach that makes utf8 works in CakePHP.

class AppModel extends Model{
  function __construct($id=false, $table=null, $ds=null){
    parent::__construct();
    $this->query("SET NAMES 'utf8'");
  }
}

It does work. The UTF8 characters can be displayed correctly.
In my apps using scaffold, Index can list the DB tables correctly.
But when I click Edit (or View) into the item, nothing can be
displayed.

Everything is shown, but every column data is empty.

Does anybody have such experience?

Jerry
--
http://www.fonsen.com.tw/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to