Re: [pear-webmaster] How to set charset to work with pear packages correctly?

From: Date: Tue, 10 Nov 2009 11:22:38 +0000
Subject: Re: [pear-webmaster] How to set charset to work with pear packages correctly?
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-6649@lists.php.net to get a copy of this message
2009/11/10 Olga Zhuravleva <ozhurevleva@gmail.com>: > Hi, sorry to trouble you, but I can't find solution my problem. > > My base and tables in - utf8_unicode_ci, data language - russian. > I got data from base like ???????? > How to set charset? > Something like: mysql_query("SET NAMES utf8"); > or > mysql_query("set character_set_client ='utf8'"); > mysql_query("set character_set_results ='utf8'"); > mysql_query("set collation_connection ='utf8_unicode_ci'"); > This is the wrong list, you should post to pear-general. I do however suppose you are talking about MDB2? If so, you could use setCharset() or pass the charset key in your DSN declaration. -- Slan, David

« previous php.pear.webmaster (#6649) next »