Skip to content

Instantly share code, notes, and snippets.

@ainsofs
Created April 20, 2015 04:35
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 ainsofs/fc6674409025283c7d02 to your computer and use it in GitHub Desktop.
Save ainsofs/fc6674409025283c7d02 to your computer and use it in GitHub Desktop.
Convert Latin1 to UTF8 on MySQL
CONVERT(CAST(CONVERT(latin1_field USING latin1) AS BINARY) USING utf8)
-- more : http://jonisalonen.com/2012/fixing-doubly-utf-8-encoded-text-in-mysql/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment