somewhere in the group i found this
function __construct()
{
$this->execute("SET NAMES 'utf8'");
parent::__construct();
}
add that to your app_model.php and it will force it to use utf8 u can
try if it is working like this
function debugutf8(){
$msg = $this->*PUTMODELNAMEHERE*->findBySql("Show VARIABLES LIKE
'%CHARACTER_SET%';");
// Then set the result variable $msg to display in views
$this->set('msg',$msg);
}
debugutf8.thtml
<?php
debug($msg);
?>
There is a better constructor but that one works for PHP5, if you are
on PHP4 like me then there will be a lot of SET NAMES 'utf8' statements
but i can live with that.
Hope it helps.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---