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

[email protected] (David Coallier)
Newsgroups php.pear.webmaster
Message-ID <[email protected]>
2009/11/10 Olga Zhuravleva <[email protected]>:
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.