/ Published in: MySQL
When you forget to "SET NAMES utf8", you'll probably end up with a bunch of latin1 data in your utf8 column. This query fixes that, CONVERTing the existing data to its correct collation.
Expand |
Embed | Plain Text
UPDATE table SET COLUMN=CONVERT(CONVERT(CONVERT(COLUMN USING latin1) USING BINARY) USING utf8);
You need to login to post a comment.
