Re: mysql initialize
thanku guys the last one works for me but still it cant show my RTL font properly, plz help me tru --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: mysql initialize
Have you tried adding dir=rtl to your html or body tags? For more info: http://ppewww.ph.gla.ac.uk/~flavell/charset/text-direction.html HTH, Ryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: mysql initialize
in app/config/database.php, you can add this to your database configuration array: 'encoding' = 'UTF8' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: mysql initialize
nate wrote: in app/config/database.php, you can add this to your database configuration array: 'encoding' = 'UTF8' Hi, I think this configuration option was added to the 1.2 branch. If you are using 1.1 you can put this in app/app_model.php: class AppModel extends Model { function __construct() { parent::__construct(); if(!defined('GLOBAL_UTF8')) { $this-query('SET NAMES utf8'); define('GLOBAL_UTF8', TRUE); } } } (I took this from some other post) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: mysql initialize
bernardo wrote: class AppModel extends Model { function __construct() { parent::__construct(); if(!defined('GLOBAL_UTF8')) { $this-query('SET NAMES utf8'); define('GLOBAL_UTF8', TRUE); } } } I'm sorry, I think that the lines with __construct need to be changed to: function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---