Forum Moderators: open
Character set client: latin1
Character set connection: latin1
Character set database: latin1
Character set results: latin1
Character set server: latin1
Character set system: utf8
collation connection: latin_swedish_ci
collation database: latin_swedish_ci
collation server: latin_swedish_ci [edited by: whoisgregg at 4:32 pm (utc) on Mar 9, 2010]
[edit reason] Whoops, no URLs please. See TOS [webmasterworld.com] :) [/edit]
The CONVERT TO operation converts column values between the character sets. This is not what you want if you have a column in one character set (like latin1) but the stored values actually use some other, incompatible character set (like utf8). In this case, you have to do the following for each such column:
ALTER TABLE t1 CHANGE c1 c1 BLOB;
ALTER TABLE t1 CHANGE c1 c1 TEXT CHARACTER SET utf8;
The reason this works is that there is no conversion when you convert to or from BLOB columns.