Created
February 20, 2018 12:53
-
-
Save SuN-80/05d3ccb49d55034f06794c5550ac4524 to your computer and use it in GitHub Desktop.
Fix double-encoded UTF8 characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- In an utf-8 table | |
UPDATE mytable SET | |
field = CONVERT(CAST(CONVERT(field USING latin1) AS BINARY) USING utf8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment