Skip to content

Instantly share code, notes, and snippets.

@WilliamSampaio
Created February 27, 2025 19:48
Show Gist options
  • Select an option

  • Save WilliamSampaio/cba59367f633f4c12b1d3b7191a1fe8f to your computer and use it in GitHub Desktop.

Select an option

Save WilliamSampaio/cba59367f633f4c12b1d3b7191a1fe8f to your computer and use it in GitHub Desktop.
Convert latin1 to UTF8 (MySQL)
SELECT
convert(cast(convert(t.field using latin1) as binary) using utf8)
FROM table t;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment