[solved] MySQL encoding cp1251

Having trouble installing serendipity?
Post Reply
Toronto
Regular
Posts: 16
Joined: Sat Nov 11, 2006 11:48 pm

[solved] MySQL encoding cp1251

Post 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!
Last edited by Toronto on Sun Apr 13, 2008 4:39 pm, edited 1 time in total.
Toronto
Regular
Posts: 16
Joined: Sat Nov 11, 2006 11:48 pm

Post by Toronto »

Solved.

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