Re: DB/DB_DataObject and MySQL character sets

From: Date: Wed, 15 Dec 2004 00:26:58 +0000
Subject: Re: DB/DB_DataObject and MySQL character sets
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16234@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Dec 14, 2004 at 09:13:29AM -0800, Justin Patrin wrote: > > default-character-set=cp1251 > > > > in my.ini, but it didn't help me. > > > > Here's a quick hac for you. After including your ini file, get a DO > and set the charset. > > $do = DB_DataObject::factory('someTable'); > $do->query('SET CHARACTER SET cp1251'); > Does this need to be done in the initialisation of *every* DO? Or is there some way to set the character set via a static method, and have it apply globally? I haven't seen this problem yet, but my ISP just upgraded to MySQL 4.1, and I've already seen other weird problems in other areas, so I'm worried. - -ken - -- - --------------- The world's most affordable web hosting. http://www.nearlyfreespeech.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBv4TSe8HF+6xeOIcRAoCPAKDTvu9m++99PWR0YK8sK9q4Jf2aGACg3GLZ odNZ8a1a2JhgSp8JZadENHE= =rE+8 -----END PGP SIGNATURE-----

« previous php.pear.general (#16234) next »