Page 1 of 1

[solved] MySQL encoding cp1251

Posted: Sun Apr 13, 2008 2:25 pm
by Toronto
Hello!

I've moved my old s9y-blog to another server(with UTF8 by default).
To use my blog correclty I have to write
init-connect="SET NAMES cp1251"
in my.ini,
but I can't because of another databases on the server.
I've tried to write
mysql_query("SET NAMES cp1251", $serendipity['dbConn']);
in mysql.inc.php in function serendipity_db_connect() but it doesnt work.
Where can I write this mysql_query?

Thanks and sorry for bad english!

Posted: Sun Apr 13, 2008 4:39 pm
by Toronto
Solved.

Enabled DB-charset conversion in Administration.
Then replace utf8->cp1251 in $serendipity['dbCharset']
serendipity_config_local.inc.php