Skip to content

Instantly share code, notes, and snippets.

@rogeriolino
Created January 25, 2016 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeriolino/22d911fbe25538838bb3 to your computer and use it in GitHub Desktop.
Save rogeriolino/22d911fbe25538838bb3 to your computer and use it in GitHub Desktop.
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