#26: Switch a MySQL table charset to UTF8

Solved!
I would like to switch a MySQL table or database to the UTF-8 character set, after it has already been created as Latin1.

Use the "CONVERT TO" syntax

3
ALTER TABLE foo CONVERT TO CHARACTER SET utf8;

Think you've got a better solution? Help 92049143cabb7ba896d7c06e19906303_small yliu out by posting your solution

yk's stuff: MySQL: CHARSET from latin1 to utf8

http://yoonkit.blogspot.com/2006/03/mysql-charset-from-latin1-to-utf8.html - found by 92049143cabb7ba896d7c06e19906303_small yliu on March 16, 2009, 11:19 PM UTC

Solution in the comments section is more useful than the one proposed in the post

Tags: blog script MySQL charset UTF8