Skip to content

Instantly share code, notes, and snippets.

@rcerrejon
Last active February 28, 2020 17:17
Show Gist options
  • Save rcerrejon/8730370 to your computer and use it in GitHub Desktop.
Save rcerrejon/8730370 to your computer and use it in GitHub Desktop.
Database replace bad characters to german (umlaut) characters
/*Database replace bad characters to german characters (SQL)*/
/*replace "pages" with yout table and "title" with your field*/
UPDATE pages SET title=replace(title,'ß', 'ß'), title=replace(title, 'ä', 'ä'), title=replace(title, 'ü', 'ü'), title=replace(title, 'ö', 'ö'), title=replace(title, 'Ä', 'Ä'), title=replace(title, 'Ãœ', 'Ü'), title=replace(title, 'Ö', 'Ö'), title=replace(title, '€', '€'), title=replace(title, '–', '–'), title=replace(title, '“', '“'), title=replace(title, '„', '„'), title=replace(title, '§', '§');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment