Privet.


As I know, PHP usually takes the character set from the server.

Please send part of your configuration file related to character sets.





Varshavchick Alexander <[EMAIL PROTECTED]> wrote:

> Hi,

> 

> I have mysql 4.1.12 started with the default charset 'koi8r' and I have 

> the following problem: when connecting from PHP, the default 

> results and connection charsets become latin1, so all not-latin characters 

> get lost (they are displayed as ?). Of cause, if I explicitely set these 

> charsets to koi8r in the PHP scripts after the mysql_connect statement, it 

> starts working correctly, but the problem is, there are so many php 

> scripts calling mysql_connect function that I cannot change them all.

> 

> I tried adding the default-character-set options into my.cnf in the 

> [mysql] section and it workso for mysql command line but not for the php.

> 

> So is there any way of setting the default connection charset which will 

> work from php? Or the only way is downgrading to mysql 4.0 to make the 

> existing php script work?

> 

> Regards

> 

> ----

> Alexander Varshavchick, Metrocom Joint Stock Company

> Phone: (812)718-3322, 718-3115(fax)

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to