Created
January 25, 2016 20:18
-
-
Save rogeriolino/22d911fbe25538838bb3 to your computer and use it in GitHub Desktop.
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
CREATE FUNCTION fixUtf8(str VARCHAR(255)) RETURNS VARCHAR(255) | |
RETURN CONVERT(CAST(CONVERT(str USING latin1) AS BINARY) USING utf8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment