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)

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

Reply via email to