Re: mysql initialize

2006-07-30 Thread [EMAIL PROTECTED]
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

Re: mysql initialize

2006-07-30 Thread ryanb006
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

mysql initialize

2006-07-29 Thread [EMAIL PROTECTED]
my web site has 'rtl' direction, so i need to initialize the mysql with this method: mysql_query(SET NAMES UTF8); but the problem is, i donno where to put it on cake, plz guide me :D --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: mysql initialize

2006-07-29 Thread nate
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

Re: mysql initialize

2006-07-29 Thread bernardo
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

Re: mysql initialize

2006-07-29 Thread bernardo
bernardo wrote: class AppModel extends Model { function __construct() { parent::__construct(); if(!defined('GLOBAL_UTF8')) { $this-query('SET NAMES utf8'); define('GLOBAL_UTF8', TRUE); } }