makkintosh

Member
May 24, 2006
5
0
151
hi all
i have problem with encoding.
today are expreriencing problems with encoding.
on all our websites there are question marks instead of cp1251 text.
only SET CHARACTER SET cp1251 helps. but it is not the right way to solve this problem!

what should i do?
i dont want to edit all configuration files on all websites on my server.
thanx
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
from which version of mysql you upgraded to?
 

makkintosh

Member
May 24, 2006
5
0
151
A week before we had updated mysql from 4.0 to 4.1.19

but after that we got working subqueries.

everything was fine

but yesterday after cPanel has been updated troubles with mysql encoding started.

first server:
WHM 10.6.0 cPanel 10.6.0-R55
FreeBSD 4.10-RELEASE i386 - WHM X v3.1.0

second:
WHM 10.8.0 cPanel 10.8.1-R113
FreeBSD 5.4-RELEASE i386 - WHM X v3.1.0

we added this line to /etc/my.cnf
default-character-set=cp1251

but nothing happened :-(
only query in the begging of php apps helps to solve the problem
SET CHARACTER SET cp1251 ...
 

makkintosh

Member
May 24, 2006
5
0
151
what u mean restored? we didnt touch DB files. they are okay. and it works okay if first write query with charset. but before cPanel update it wasnot necessary.....