Last active
July 16, 2018 18:23
-
-
Save jesusbmx/a6e38b9456e8ec957ef6d4bb744da0ed to your computer and use it in GitHub Desktop.
Corrigiendo caracteres rotos de utf8 en MySQL
This file contains hidden or 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
UPDATE usuarios | |
SET referencia = REPLACE (referencia, 'Â', ''); | |
UPDATE usuarios | |
SET referencia = IFNULL( | |
CONVERT ( | |
BINARY CONVERT (referencia USING latin1) USING utf8 | |
), | |
referencia | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment